3×2 Matrix{Float64}:
0.0 0.0
1.0 0.0
0.0 1.0Updating git-repo `https://github.com/paulgb/PenPlots.jl` Updating registry at `~/.julia/registries/General.toml` Resolving package versions... Updating `/tmp/jl_fsPfSI/Project.toml` [61246389] ~ PenPlots v0.1.0 `https://github.com/paulgb/PenPlots.jl#master` ⇒ v0.1.0 `https://github.com/paulgb/PenPlots.jl#master` Updating `/tmp/jl_fsPfSI/Manifest.toml` [61246389] ~ PenPlots v0.1.0 `https://github.com/paulgb/PenPlots.jl#master` ⇒ v0.1.0 `https://github.com/paulgb/PenPlots.jl#master`
TriangulateIO( pointlist=[0.2 0.3 … 0.7 1.0; 1.0 1.0 … 0.3 0.6], pointmarkerlist=Int32[1, 1, 0, 0, 1, 0, 1, 1, 0, 1], trianglelist=Int32[6 1 … 4 9; 7 6 … 10 3; 3 2 … 6 5], )
TriangulateIO( )
TriangulateIO( pointlist=[0.2 0.3 … 0.7 1.0; 1.0 1.0 … 0.3 0.6], )
2×10 Matrix{Float64}:
0.9 0.6 0.2 0.2 0.6 0.2 1.0 1.0 1.0 0.1
0.1 0.8 1.0 0.5 0.5 0.6 0.9 0.7 0.5 0.3to_triangulate_mat (generic function with 1 method)2×10 Matrix{Float64}:
0.160801 0.500827 0.875971 0.414216 … 0.359395 0.550349 0.973304
0.0767157 0.750534 0.24558 0.389123 0.857727 0.209442 0.00825298MethodError: no method matching reinterpret(::Int64, ::Type{StaticArrays.SVector{Float64, 2}}, ::Matrix{Float64})
Closest candidates are:
reinterpret(::typeof(reshape), ::Type{T}, ::A) where {T, S, A<:(AbstractArray{S})} at /opt/hostedtoolcache/julia/1.7.3/x64/share/julia/base/reinterpretarray.jl:52
reinterpret(::typeof(reshape), ::Type{T}, ::Base.ReinterpretArray{T, N, S, A, true} where {T, N, S, A<:(AbstractArray{S})}) where T at /opt/hostedtoolcache/julia/1.7.3/x64/share/julia/base/reinterpretarray.jl:124
reinterpret(::typeof(reshape), ::Type{T}, ::AbstractArray{T}) where T at /opt/hostedtoolcache/julia/1.7.3/x64/share/julia/base/reinterpretarray.jl:78
...
Here is what happened, the most recent locations are first:
triangulate_raw (generic function with 1 method)TriangulateIO(
pointlist=[-28.606110189574423 -33.27986187595284 … 196.3870134493292 200.0; 25.593153555170787 22.911509651021046 … -25.06274838429784 -9.797174393178826e-14],
pointmarkerlist=Int32[0, 0, 0, 0, 0, 0, 0, 0, 0, 0 … 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
trianglelist=Int32[62 64 … 30 19; 13 15 … 78 1; 61 63 … 79 18],
)
triangulate (generic function with 1 method)"nothingasdf""100.000000000000000"n (generic function with 1 method)n (generic function with 2 methods)n (generic function with 3 methods)build_switches (generic function with 1 method)triangulate_true (generic function with 1 method)@label_bind (macro with 1 method)max_area: min_angle: -28.6061
25.5932
-33.2799
22.9115
-37.7082
19.4399
-41.7641
15.2009
-45.323
10.2367
-48.2653
4.60878
-50.4796
-1.60242
-51.8655
-8.29906
-52.336
-15.3672
-51.8203
-22.6789
-50.2657
-30.0942
-47.6396
-37.4642
-43.9308
-44.6334
-39.1505
-51.4432
-33.3333
-57.735
-26.5368
-63.3536
-18.8416
-68.1505
-10.3502
-71.987
-1.18594
-74.7381
8.50879
-76.2947
75.53
-165.388
96.9243
-156.212
117.194
-144.253
135.974
-129.651
152.92
-112.593
167.708
-93.3105
180.047
-72.08
189.679
-49.2149
196.387
-25.0627
200.0
-9.79717e-14
Split a Path into the single-line paths that it consists of, but check the return type...
without_duplicate_lines (generic function with 1 method)164348496flatmap (generic function with 1 method)random_subset (generic function with 1 method)-28.6061
25.5932
-33.2799
22.9115
-37.7082
19.4399
-41.7641
15.2009
-45.323
10.2367
-48.2653
4.60878
-50.4796
-1.60242
-51.8655
-8.29906
-52.336
-15.3672
-51.8203
-22.6789
-50.2657
-30.0942
-47.6396
-37.4642
-43.9308
-44.6334
-39.1505
-51.4432
-33.3333
-57.735
-26.5368
-63.3536
-18.8416
-68.1505
-10.3502
-71.987
-1.18594
-74.7381
8.50879
-76.2947
75.53
-165.388
96.9243
-156.212
117.194
-144.253
135.974
-129.651
152.92
-112.593
167.708
-93.3105
180.047
-72.08
189.679
-49.2149
196.387
-25.0627
200.0
-9.79717e-14
TriangulateIO( pointlist=[-28.6061 -33.2799 … 196.387 200.0; 25.5932 22.9115 … -25.0627 -9.79717e-14], pointmarkerlist=Int32[0, 0, 0, 0, 0, 0, 0, 0, 0, 0 … 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], trianglelist=Int32[1 1 … 35 81; 2 16 … 34 37; 3 17 … 81 36], )
TriangulateIO( )