[Insight-users] Writing itk::Mesh to disk

Julien Jomier jjomier at cs.unc.edu
Mon, 22 Mar 2004 15:23:33 -0500


Hi Yasser,

I think we can use MetaIO to read/write an itkMesh on disk.
Can you log this as a feature request in the bug tracker =
(www.itk.org/Bug)
and I'll take a look. Can you also specify, when adding it, what needs =
to be
saved.

Regards,

Julien

> -----Original Message-----
> From: insight-users-admin at itk.org=20
> [mailto:insight-users-admin at itk.org] On Behalf Of Yasser Bashir
> Sent: Monday, March 22, 2004 3:15 PM
> To: 'Thomas Boettger'
> Cc: insight-users at itk.org
> Subject: RE: [Insight-users] Writing itk::Mesh to disk
>=20
>=20
>=20
> Hi Thomas,
>=20
> Thank you for the code.
>=20
> Unfortunately we want our itk::Mesh to be much more flexible=20
> than the unstructuredGrid as we want neighbourhood and=20
> boundary feature information also serialized to disk.
>=20
> Therefore I was looking for something more generic and=20
> apparently ITK doesn't have that facility yet.
>=20
> Regards,
>=20
> Yasser
>=20
>=20
> -----Original Message-----
> From: insight-users-admin at itk.org [mailto:insight-users-admin at itk.org]
> On Behalf Of Thomas Boettger
> Sent: Monday, March 22, 2004 12:40 AM
> To: Yasser Bashir
> Cc: insight-users at itk.org
> Subject: Re: [Insight-users] Writing itk::Mesh to disk
>=20
>=20
> Hi Yasser,
>=20
> I would convert itk to vtkPolyData or vtkUnstructuredGrid and=20
> save it to
>=20
> disk.
>=20
> You find and example on how this can be done in
>=20
> 	InsightApplications-1.6.0/Auxiliary/vtk/vtk2itk.cxx
>=20
>=20
> Furthermore I send you some code, which is based on the example, but=20
> where you can additionally create a vtkPolyData by calling=20
> the static method
>=20
>    static vtkPolyData* meshToPolyData(typename=20
> MeshType::Pointer mesh,
> bool onlyTriangles =3D false);
>=20
>=20
>=20
> Regards,
>=20
> Thomas
>=20
>=20
>=20
> Yasser Bashir wrote:
> > Hi,
> > =20
> > Is there a convenient way to perform file I/O for itk::Mesh?
> > =20
> > All of the IO filters seem to be catering to images.
> > =20
> > Regards,
> > =20
> > Yasser
> >=20
> >=20
> > Do you Yahoo!?
> > Yahoo! Finance Tax Center - File online. File on time.
>=20
>=20
> --=20
> Dipl.-Inform. Thomas Boettger
> Deutsches Krebsforschungszentrum         (German Cancer=20
> Research Center)
> Div. Medical and Biological Informatics B010    Tel: (+49)=20
> 6221-42 2328
> Im Neuenheimer Feld 280                          Fax: (+49)=20
> 6221-42 2345
> D-69120 Heidelberg                            e-mail:=20
> t.boettger at dkfz.de
> Germany                     =20
> http://www.dkfz.de/mbi/people/thomasb.shtml
>=20
>=20
>=20
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org=20
> http://www.itk.org/mailman/listinfo/insight-> users
>=20