Cannot access file /private/tmp/iso2mesh-bakhaty/post_vmesh.a.node.
/Users/bakhaty/v85/fe2/utilities/mesh/bin/tetgen.mexmaci64 -A -q1.414adisp /private/tmp/iso2mesh-bakhaty/post_vmesh.poly: Segmentation fault
I use iso2mesh to create a mesh on a 3D binary volume. Thanks to vol2mesh and 'cgalmesh' i am able to create a surface and a volume tetrahedral mesh (vol2mesh(vol,512,512,200,opt,maxvol,1,'cgalmesh',);) In the code the following command is used : [node elem,face]=cgalv2m(vol,opt,maxvol);
then i am able to plot the tetrahedral volume, and cut it to see the tetrahedral mesh inside : plotmesh(node,elem,'z<150'); (as on the following website : http://morrisvanegas.com/forme/brain.html paragraph ISO2MESH).
Finally i want to save it : to only the surface but the entire tetrahedral volume :
savestl(node,elem,'file.stl'); Unfortunately it does'nt work, moreover i think that "savestl" save only the surface and doesn't save the volume, is it correct ?....
Can you help me ? to summary i want to save the results of vol2mesh with cgalmesh option in stl format.
Thanks a lot in advance !
Now I met some difficulties when I study the subject of the time, so I want to ask you, how to use iso2mesh to make three-dimensional matrix converted into the model tant can be used in FLUENT? This three dimensional matrix is binary matrix of image processing. Thank you very much for your reply.(I don't well in english ,I‘m so sorry to that)
I plan creating surface meshes (for now) for individual 4-layer BEM (skin, skull, CSF , brain), using freesurfer /MNE volumes and surfaces as imput. For the BEM model I use, requirements are: surfaces have to be nonintersecting, closed, limited to 500-5000 vertices each, and delivered in surfacical FS output (such as ?h.pial) or as ASCII file. While I do not have any other constrains except those mentioned for getting boundary meshes such as skin, outer skull, inner skull, I need to use freesurfer pial surfaces (as such or smoothed/eroded 2-3 mm) for the source surface (cortex) for several reasons: consistency with prior experiments, good pial atlases, surface-based registration. It follows that the CSF-gray boundary has to be nonintersecting with this freesurfer pial-derived source surface. I would like to know whether iso2mesh can segment a freesurfer volume 1) creating surface that are nonintersecting, closed, downsampled to 500-5000 vertices each, and delivered in surfacical FS output (such as ?h.pial) or as ASCII file 2) able to create a CSF-gray boundary mesh not intersecting with the freesurfer pial-derived source surface (this boundary mesh can for example be created either by downsampling of the original pial, a smoothed pial surface-such as freesurfer's outer-smoothed pial-, or any other method that preserves the "nonintersection with the source space).
I know there are a lot of factors to determine a good vs bad outcome, but I would like to know in principle, Please advise,
Octavian Lie, MD PHD UT San Antonio
1- What is the unit of mesur that you use (centimetres, inches...) 2- How do you numerate the node of the mesh in FEM?