olamundo
olamundo

Reputation: 24991

tetrahedrizing a mesh

I am looking for an algorithm that receives a 3d surface mesh (i.e comprised of 3d triangles that are a discretization of some manifold) and generates tetrahedra inside the mesh's volume.

i.e, I want the 3d equivalent to this 2d problem: given a closed curve, triangulate it's interior.

I am sorry if this is unclear, it's the best way I could think of explaining it.

For the 2d case there's Triangle. For a 3d case I could find none.

Upvotes: 11

Views: 1979

Answers (3)

Nico Schlömer
Nico Schlömer

Reputation: 58911

pygalmesh (a project of mine based on CGAL) can do just that.

pygalmesh-volume-from-surface elephant.vtu out.vtk --cell-size 1.0 --odt

https://github.com/nschloe/pygalmesh/#volume-meshes-from-surface-meshes

enter image description here

Upvotes: 3

fatalaccidents
fatalaccidents

Reputation: 192

I haven't had any experience using GRUMMP, but as far as a 3D version of triangle there is tetgen. If you know the triangle switches it is built to resemble it. It also has fairly decent documentation and a python wrapper for it and triangle.

http://wias-berlin.de/software/tetgen/

http://mathema.tician.de/software/meshpy/

Upvotes: 0

olamundo
olamundo

Reputation: 24991

I found GRUMMP which seems to answer all the needs mentioned in the question, and more...

Upvotes: 1

Related Questions