[vtkusers] Problems with vtkPolyData and GlobalIds

RE roccoerdmann at gmx.de
Thu Jun 21 03:14:59 EDT 2012


Hey,

i'm currently working on an interface between Nastran and VTK. I've written
a converter which produces vtk files from Nastran db files. The vtk files
are extracted in the correct format.
I think the problem is found within the GlobalIds Array (vtkIdTypeArray)
which is added to the global id array of the polydata object, since the
global ids do not start from zero but from i.e. 20001. There are jumps
within the ids respectively (i.e. 20001 - 20500, 50000 - 51000, ....). Is
that the reason why i always get degenerated cells? When i read the vtk file
into the memory, number of points, number of cells, number of ... are
extracted correct. But polydata.buildlinks(0) (polydata.buildlinks() will
not be compiled since an argument is needed) will results in crashing (if i
load a file with ids starting from zero, this methode works correctly). A
vtkCleanPolyData with input set to the polydata will crash respectively if i
have jumps within the global ids.

Is there a way to read vtk files with jumps within the globalids?

Regards

RE

--
View this message in context: http://vtk.1045678.n5.nabble.com/Problems-with-vtkPolyData-and-GlobalIds-tp5714052.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list