Warning: you’ll have to be familiar with the terminal to reproduce the following example!
Here is a way to use other tools to recreate a model similar to the one above, which will require:
In order to use tetgen and create a volume mesh of your object, you’ll have to make sure that it is watertight, and that no faces are intersecting.
If your model is quite simple and you don’t want to check it before trying tetgen, please do so.
But if it is a complex model with lots of potentially intersecting parts, you’ll want to fix that, as well as making your model watertight (“closed”).
To do so, I often use one of :
Once your model is ready, export it to a .mesh file, and open a terminal!
In order to create tetrahedra (the volume equivalent of triangles for surfaces) inside a surface, I’ll use the software tetgen with the following command line:
tetgen -pgaA /path/to/myModel.mesh
This will create a coarse volumetric mesh inside my surface, which I’ll then refine by using mmg3d - the volumetric equivalent of mmgs - which comes with the installation of mmgs (note the .1 in the file name):
/path/to/myModel.1.o.mesh is then ready to be fed to paraview, after having been converted to a .vtk file by using the convertToVTK.py python script present in the scripts/ directory of this add-on (which you’ll have to uncompress if it is still in a .zip format):
python convertToVTK.py /path/to/myModel.1.o.mesh
On success, a file called
/path/to/myModel.1.o.vtk should have been created, which we’ll be ready to slice through!
I won’t enter into the details of paraview, but in order to cut your model you’ll have to:
Once your object looks as you wish, you can finally export the scene to a .x3d file, import the file in blender, and remove all the necessary stuff from your workspace.
Et voilà! A nice cut-through version of your inital model!