How to specify holes?
Closed this issue · 6 comments
What's the syntax for specifying holes?
You'll need to construct a TetgenIO
object directly and supply a hole list: https://github.com/JuliaGeometry/TetGen.jl/blob/master/src/cppwrapper.jl#L198
You can then call https://github.com/JuliaGeometry/TetGen.jl/blob/master/src/cppwrapper.jl#L390 directly... May need to look up the correct command, or reuse the ones used for the other commands: https://github.com/JuliaGeometry/TetGen.jl/blob/master/src/api.jl#L1
Is GeometryBasics.Mesh
going to be able to support holes? That would make it a more useful interface probably.
You could pass it as meta data and pick that up in TetGen much like:
https://github.com/JuliaGeometry/TetGen.jl/blob/master/src/api.jl#L13
Let's say I have a triangle mesh of the surface of a sphere, and I want to make it the hole in a cube tetrahedral mesh.
This means I will need to input both rectangular faces and triangular faces for TetGen
, does TetgenIO
support that?
Or do I need to triangulate the quad faces first, and just feed it all triangles as faces, then specify a point for the hole?
Alright, so I got a mesh with a spherical hole in it by triangulating the quad faces also, and then feeding all the faces into the mesh generation as TriangleFaces
instead, and specifying the hole. That seems to work.
Let me know if there is supposed to be another way to combine both QuadFace
and TriangleFace
inputs.
Issue closed with #18