doc:user:geometry:mesh:geniso
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
doc:user:geometry:mesh:geniso [2014/08/08 22:49] – joris | doc:user:geometry:mesh:geniso [2016/03/30 15:23] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
This mesher is used to generate a 3D surface mesh from a 3D segmented image. | This mesher is used to generate a 3D surface mesh from a 3D segmented image. | ||
- | ===== mono-material mesh ===== | + | ===== Mono-material mesh ===== |
The input is a 3D segmented binary image. It contains two values: voxels with a $0$ value are located outside of the object to mesh, voxels with a non-zero value are located inside. | The input is a 3D segmented binary image. It contains two values: voxels with a $0$ value are located outside of the object to mesh, voxels with a non-zero value are located inside. | ||
Line 32: | Line 32: | ||
poly = generalTools.genisoMeshToPolyData(smooth.getSurf()) | poly = generalTools.genisoMeshToPolyData(smooth.getSurf()) | ||
- | TetGen is used to get a tetrahedral | + | TetGen is used to get a tetrahedral |
ugrid = meshingTools.callTetgen(poly) | ugrid = meshingTools.callTetgen(poly) | ||
Line 42: | Line 42: | ||
- | ===== Maillage multi-matériau | + | ===== Multi-material mesh ===== |
- | Cette option | + | This option |
- | Dans le cas multi-matériau l'image segmentée représentant la géométrie doit contenir plusieurs | + | In the multi-material case, the segment |
- | Pour utiliser le mailleur | + | To use the GenIso |
- | Pour définir cette fonction, on définit les couples | + | To define this function, couples |
{{ : | {{ : | ||
- | Dès lors, la syntaxe à utiliser est la suivante: | + | Consequent, the syntax is as follow: |
fct = Fct() | fct = Fct() | ||
Line 69: | Line 69: | ||
fct.build() | fct.build() | ||
- | + | Afterwards, the mesh can be generated with the commands: | |
- | Ensuite, nous pouvons générer le maillage au moyen des commandes: | + | |
gen = GenerateMesh(fct) | gen = GenerateMesh(fct) | ||
Line 77: | Line 76: | ||
poly = generalTools.genisoMeshToPolyData(gen.getSurf()) // vtkPolyData | poly = generalTools.genisoMeshToPolyData(gen.getSurf()) // vtkPolyData | ||
- | A partir de ce maillage surfacique | + | From this surface |
seedbrain= [118.3, | seedbrain= [118.3, | ||
Line 85: | Line 84: | ||
ugrid = meshingTools.callTetgenMultipleRegions(poly, | ugrid = meshingTools.callTetgenMultipleRegions(poly, | ||
- | Ensuite, pour charger le maillage dans Metafor: | + | Then, the mesh is loaded in Metafor: |
- | labels = [1,2] // les deux labels | + | labels = [1,2] // the two labels |
grp = [groupset(1), | grp = [groupset(1), | ||
| | ||
Line 96: | Line 95: | ||
| | ||
- | ===== Paramètres | + | ===== Parameters |
- | ^ | + | ^ |
- | | '' | + | | '' |
- | | '' | + | | '' |
- | | '' | + | | '' |
- | | '' | + | | '' |
- | | '' | + | | '' |
- | | '' | + | | '' |
- | | '' | + | | '' |
doc/user/geometry/mesh/geniso.1407530957.txt.gz · Last modified: 2016/03/30 15:22 (external edit)