AW: [Insight-users] itkBinaryMask3DMeshSource

Luis Ibanez luis . ibanez at kitware . com
Fri, 19 Sep 2003 11:59:55 -0400


Hi Zein,

Please look at the SoftwareGuide
http://www . itk . org/ItkSoftwareGuide . pdf

Access to point data in the mesh is discussed
in Section 4.2.2, pdf-page 73.

You can basically take the final section of code
from the example

Insight/Examples/DataRepresentation/Mesh/PointSet2.cxx

open a file before the loop of the iterator, and
instead of writing data to "cout" send the data
to th ofstream associated with your file.

For saving cell (triangles) data, you may follow the
example in Section 4.3.7, pdf-page 104, the code
of this example is in

Insight/Examples/DataRepresentation/Mesh/MeshCellsIteration.cxx



Regards,


      Luis

---------------------
salah wrote:

>Thanks Luis,
>
>One more question please:
>
>I want to access the generated mesh and write it into
>a data file of this format
>==========================================================
>
>list of vertices 
>(three x, y, and y coordinates)
>...
>...
>...
>
>list of triangles 
>(three pointers to vertix entries)
>...
>...
>...
>
>==========================================================
>
>is there some example/application that already does 
>something similar to this? Any other recommendations 
>would be highly appreciated!
>
>Many thanks,
>
>Zein
>
>
>  
>
>>-----Ursprüngliche Nachricht-----
>>Von: Luis Ibanez [mailto:luis . ibanez at kitware . com]
>>Gesendet: Freitag, 19. September 2003 03:39
>>An: salah
>>Cc: ITK Users (E-Mail)
>>Betreff: Re: [Insight-users] itkBinaryMask3DMeshSource
>>
>>
>>
>>Hi Zein,
>>
>>The itkBinaryMask3DMeshSourrce is basically
>>an implementation of the Marching Cubes
>>algorithm.
>>
>>The resulting Mesh is a triangulation.
>>
>>[Note that this particular algorithm is patented]
>>
>>
>>   Regards,
>>
>>
>>     Luis
>>
>>
>>
>>-------------------
>>salah wrote:
>>    
>>
>>>Hello friends,
>>>
>>>I 've newly bogun working with the mesh data structures provided 
>>>by ITK. 
>>>I used theitkBinaryMask3DMeshSource to generate the the mesh 
>>>of a segmented object in a binary image. The question is:  is the 
>>>generated mesh a triangluation? Is not, is there some tools in ITK
>>>(or VTK) to re-triangulate this mesh?
>>>
>>>Many Thanks,
>>>Zein 
>>>
>>>
>>>      
>>>
>>->8<------------->8<------------->8<------------->8<----------
>>--->8<------------->8<-
>>    
>>
>>>Zein I. Salah 
>>>University of Tübingen, WSI-GRIS, Sand 14, 72076 Tübingen 
>>>Email: salah at gris . uni-tuebingen . de
>>>Tel.: (07071) 29 75464 (GRIS),           Fax: (07071) 29 54 66
>>>
>>>
>>>
>>>
>>>_______________________________________________
>>>Insight-users mailing list
>>>Insight-users at itk . org
>>>http://www . itk . org/mailman/listinfo/insight-users
>>>
>>>      
>>>
>>
>>
>>    
>>
>
>
>  
>