Personal tools
You are here: Home Forum Use How to export multiple geometry objects to vtk file?

How to export multiple geometry objects to vtk file?

Up to Use

How to export multiple geometry objects to vtk file?

Posted by tang zhao at November 28. 2012

thanks!

Re: How to export multiple geometry objects to vtk file?

Posted by Saint Michael at November 28. 2012

Previously tang zhao wrote:

thanks!

In Python, in case if your "multiple geometry" is a list of GEOM objects, export each object to a separate file:
for geom in multiple_geometry:
   geompy.Export( geom, "/tmp/g.vtk", "VTK")
St.Michael

 

Re: How to export multiple geometry objects to vtk file?

Posted by tang zhao at November 28. 2012

Previously Saint Michael wrote:

Previously tang zhao wrote:

thanks!

In Python, in case if your "multiple geometry" is a list of GEOM objects, export each object to a separate file:
for geom in multiple_geometry:
   geompy.Export( geom, "/tmp/g.vtk", "VTK")
St.Michael

hi

  St.Michael 

Can export a list of geom objects to single vtc file? thanks!

 

Re: How to export multiple geometry objects to vtk file?

Posted by Saint Michael at November 28. 2012

geom = geompy.MakeCompound( multiple_geometry_list )
geompy.Export( geom, "/tmp/g.vtk", "VTK")


St.Michael

Re: How to export multiple geometry objects to vtk file?

Posted by tang zhao at November 28. 2012

Previously Saint Michael wrote:

geom = geompy.MakeCompound( multiple_geometry_list )
geompy.Export( geom, "/tmp/g.vtk", "VTK")


St.Michael

 

but the MakeCompound command can not fuse the line and solid

 

Re: How to export multiple geometry objects to vtk file?

Posted by Saint Michael at November 28. 2012

Previously tang zhao wrote:

but the MakeCompound command can not fuse the line and solid

Yes, it does not fuse but puts them in one shape. Fusing is not necessary for writing the VTK file.

St.Michael

 

Powered by Ploneboard
Document Actions