Skip to content

Commit bc88b0d

Browse files
committed
✨ Add example script for point query visualization
1 parent 55532b3 commit bc88b0d

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

example/getpts.jl

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using FastPointQuery
2+
using WGLMakie
3+
4+
stl_model = readSTL3D(joinpath(@__DIR__, "wheel.stl"))
5+
6+
h = 3
7+
pts = FastPointQuery._get_pts_ray(stl_model, h, ϵ="FP32")
8+
9+
saveply(joinpath(@__DIR__, "wheel.ply"), pts)
10+
11+
let
12+
fig = Figure()
13+
ax = LScene(fig[1, 1])
14+
scatter!(ax, pts, markersize=1)
15+
display(fig)
16+
end

0 commit comments

Comments
 (0)