Using check all to compute the quality, and clicking on intersect faces and non manifold to get the intersections and holes
With the "F" shortcut, after selecting loops with Shift + Alt + Right click for instance
medit suzanne.mesh
- Z to zoom in
- Shift + Z to zoom out
- F1 to toogle clip
- e to display references
- b to change background
- l to toggle wireframe
tetgen -pgaA suzanne.mesh
Writes to suzanne.1.mesh
You can get the reference of a tetrahedra with Shift + click, and looking in the terminal (blue = 0, red = 1, green = 2)
python pythonMesh/src/removeReference.py suzanne.1.mesh 2
mmg3d suzanne.1.d.mesh
Writes in + "suzanne.1.d.o.mesh"
Save as DEFAULT.nstokes in the same directory that your remeshed object
Dirichlet # Type of boundary condition
3 # 3 different regions for boundary conditions
1 triangle v 0. 0. 0. # The region of reference has a null velocity
2 triangle v 0. 1. 0. # The region of reference 2 is the input : v = (0,-1,0)
4 triangle v 0. 0. 0. # 4 also has a null velocity
Domain
1 #The number of domains in which we are computing the flow
1 1. 1. # reference one (red tetrahedras), nu and rho
nstokes -r 0.005 suzanne.1.d.o.mesh
The original file has been modified, and should now contain the vector and scalar fields.
medit suzanne.1.d.o.mesh
We have to write a file compatible with paraview in order
python pythonMesh/src/convertToParaview.py suzanne.1.d.o.mesh
A file called suzanne.1.d.o.vtk has been created (hopefully)
A whole new tool...
Import the vtk file in paraview, and apply your filters.
When you are satisfied, go to File -> Export Scene and choose .x3d format. You will be able to open that file in blender.
You can now import back the x3d file in blender, to visualize the results.
File -> import -> .x3d
However, you will see that the axis are not aligned. To fix this, you must rotate your results in blender: