Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions examples/examples.jl
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,15 @@ function cube_stl()
modelfile = joinpath(modeldir, "cube.stl")
tetrahedralize(modelfile, "pQa1.0")
end

function interior_mesh_stl()
modeldir = joinpath(dirname(pathof(TetGen)), "..", "test", "surfaceModels")
modelfile = joinpath(modeldir, "interior_mesh.stl")
tetrahedralize(modelfile, "pQq1.4")
end



"""
prism(;vol=1)

Expand Down
10 changes: 10 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,16 @@ end
@test numberoftrifaces(result) == 12
generic_test(result)

@info "interior_mesh_stl"
result = interior_mesh_stl()
@test numberofpoints(result) == 13494
@test numberoftetrahedra(result) == 53114
@test numberofedges(result) == 15449
@test numberoftrifaces(result) == 19050
generic_test(result)
@info "interior_mesh_stl done"


result = cubewithhole()
@test numberofpoints(result) == 56
@test numberoftetrahedra(result) == 168
Expand Down
Loading
Loading