Skip to content

Commit

Permalink
CHANGE: updated scripts to reflect syntax changes in the latest Rebol
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed Apr 2, 2024
1 parent 79de7a3 commit d418ae6
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 25 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
run: COPY .\msvc\Release-Win32\triangulate-x86.dll triangulate-windows-x86.rebx

- name: Install Rebol for extension test
uses: oldes/install-rebol@v3.8.0
uses: oldes/install-rebol@v3.16.0

- name: Test Triangulate extension
run: ./rebol3 test/triangulate-test.r3
Expand Down Expand Up @@ -85,7 +85,7 @@ jobs:
run: mv ./build/triangulate-x64.so triangulate-linux-x64.rebx

- name: Install Rebol for extension test
uses: oldes/install-rebol@v3.8.0
uses: oldes/install-rebol@v3.16.0

- name: Test Triangulate extension
run: ./rebol3 test/triangulate-test.r3
Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:
run: mv ./build/triangulate-x64.dylib triangulate-macos-x64.rebx

- name: Install Rebol for extension test
uses: oldes/install-rebol@v3.8.0
uses: oldes/install-rebol@v3.16.0

- name: Test Triangulate extension
run: ./rebol3 test/triangulate-test.r3
Expand Down
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ import 'triangulate
;- the `inp` object must have at least `points` as a vector with decimal values
inp: object [
points: #[f64! [
points: #(f64! [
0.0 0.0
10.0 0.0
10.0 10.0
0.0 10.0
2.5 2.5
]]
])
report: true ;; will print triangulation info
]
Expand Down Expand Up @@ -84,17 +84,17 @@ Edge 6 points: 2 -1 0 -10
Edge 7 points: 3 -1 0 10
OUT is an object of value:
points vector! #[vector! decimal! 64 10 [0.0 0.0 10.0 0.0 10.0 10.0 0.0 10.0 2.5 2.5]]
points vector! #(vector! decimal! 64 10 [0.0 0.0 10.0 0.0 10.0 10.0 0.0 10.0 2.5 2.5])
attributes none! none
markers vector! #[vector! integer! 32 5 [1 1 1 1 0]]
segments vector! #[vector! integer! 32 8 [1 0 2 1 3 2 0 3]]
segment-markers vector! #[vector! integer! 32 4 [1 1 1 1]]
edges vector! #[vector! integer! 32 16 [3 0 0 4 4 3 4 1 1 2 2 4 0 1 2 3]]
triangles vector! #[vector! integer! 32 12 [3 0 0 4 4 3 4 1 1 2 2 4]]
v-points vector! #[vector! decimal! 64 8 [-2.5 5.0 7.5 5.0 5.0 -2.5 5.0 7.5]]
markers vector! #(vector! integer! 32 5 [1 1 1 1 0])
segments vector! #(vector! integer! 32 8 [1 0 2 1 3 2 0 3])
segment-markers vector! #(vector! integer! 32 4 [1 1 1 1])
edges vector! #(vector! integer! 32 16 [3 0 0 4 4 3 4 1 1 2 2 4 0 1 2 3])
triangles vector! #(vector! integer! 32 12 [3 0 0 4 4 3 4 1 1 2 2 4])
v-points vector! #(vector! decimal! 64 8 [-2.5 5.0 7.5 5.0 5.0 -2.5 5.0 7.5])
v-attributes none! none
v-edges vector! #[vector! integer! 32 16 [0 -1 0 2 0 3 1 2 1 -1 1 3 2 -1 3 -1]]
v-norms vector! #[vector! decimal! 64 16 [-10.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0]]
v-edges vector! #(vector! integer! 32 16 [0 -1 0 2 0 3 1 2 1 -1 1 3 2 -1 3 -1])
v-norms vector! #(vector! decimal! 64 16 [-10.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0])
```

# Delaunay triangulation of a set of vertices
Expand All @@ -104,7 +104,7 @@ import 'blend2d
inp: object [
; spiral shaped input points
points: #[f64! [
points: #(f64! [
390.0 390.0
327.6 526.4
187.5 455.4
Expand All @@ -120,7 +120,7 @@ inp: object [
805.5 702.0
714.0 823.5
594.0 913.5
]]
])
report: true
]
Expand Down
4 changes: 2 additions & 2 deletions test/triangulate-spiral.r3
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import 'blend2d

inp: object [
; spiral shaped input points
points: #[f64! [
points: #(f64! [
390.0 390.0
327.6 526.4
187.5 455.4
Expand All @@ -24,7 +24,7 @@ inp: object [
805.5 702.0
714.0 823.5
594.0 913.5
]]
])
report: true
]

Expand Down
14 changes: 7 additions & 7 deletions test/triangulate-test.r3
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,27 @@ unless value? 'triangulate [
]

inp: object [
points: #[f64! [
points: #(f64! [
0.0 0.0
10.0 0.0
10.0 10.0
0.0 10.0
2.5 2.5
]]
attributes: #[f64! [
])
attributes: #(f64! [
100.0
2.0
3.0
4.0
5.0
]]
markers: #[i64! [2 1 1 1 1]]
regions: #[f64! [
])
markers: #(i64! [2 1 1 1 1])
regions: #(f64! [
5.0
5.0
10.0 ; Regional attribute (for whole mesh).
1.0 ; Area constraint that will not be used.
]]
])
report: true
]

Expand Down

0 comments on commit d418ae6

Please sign in to comment.