Reputation: 19
I have a triangular mesh of the brain surface. I want to remesh it to a high-quality Delaunay triangulation. I'm seeking an easy and straightforward method.
Upvotes: 1
Views: 2379
Reputation: 7015
You can use JIGSAW
for surface (re)meshing. Similarly to CGAL
, it offers various Delaunay-based methods to discretise planar/surface/volume domains, with a focus on high quality mesh creation.
Though JIGSAW
itself is a c++
code, you can run it directly from either MATLAB
or Python
. To install, you'll need a c++
compiler and cmake
. Click through to GitHub
for additional instructions and examples.
**I'm a developer of JIGSAW
, so keep this in mind I guess! Otherwise, in addition to CGAL
, the MMG
or Geogram
packages may also be of interest.
Upvotes: 0
Reputation: 58901
pygalmesh interfaces CGAL and has surface remeshing. Install CGAL, then install pygalmesh with
pip install pygalmesh
Then you can use
pygalmesh-remesh-surface lion-head.off out.vtu -e 0.025 -a 25 -s 0.1 -d 0.001
Upvotes: 1
Reputation: 2408
You mean that you want to resample the mesh? I've had some success using the trimesh package: https://github.com/mikedh/trimesh
Check out trimesh.remesh
in particular.
Upvotes: 0
Reputation: 6303
I'm not sure if C++ is an option for you but the CGAL library provides such a functionality. See this package, see in particular this example.
If you want to use a GUI, you can use the CGAL polyhedron demo. You can compile it yourself by compiling the code in demo/Polyhedron
from a release or use the pre-compiled windows demo available: demo + dlls to be extracted in the directory of the demo. Load your input mesh, select it and click on Operations -> Tetrahedral Mesh Generation -> Create a Surface Triangle Mesh
Upvotes: 0