pyvista / tetgen

A Python interface to the C++ TetGen library to generate tetrahedral meshes of any 3D polyhedral domains
http://tetgen.pyvista.org
Other
219 stars 32 forks source link

-Y Preserves the input surface mesh (does not modify it). #13

Closed hearables-pkinsella closed 4 years ago

hearables-pkinsella commented 4 years ago

How can I mimic the -Y function so it does not modify the input surface? I have tried setting the quality, nobisect and steinerleft to 0 but it still adds 664 steiner points

akaszynski commented 4 years ago

You should be able to add switches directly. Have you tried that with the cython version of the module?

hearables-pkinsella commented 4 years ago

I haven't tried that yet, do you have a short example of how I would do that?

hearables-pkinsella commented 4 years ago

Sorry got it working, thanks for your help.

switches = b'-Y' node,elem = _tetgen.Tetrahedralize(V,F,switches)

akaszynski commented 4 years ago

Thanks!

akaszynski commented 4 years ago

I'm adding in the switches feature to the python tetgen class. Release should be out shortly.