[vtkusers] Wrong Coordinates from vtkPolyData::GetPoint?
Ruediger Tornow
tornow at techinfo.rwth-aachen.de
Wed Mar 21 12:16:50 EST 2001
Hi there,
I am encountering a strange behaviour concerning
the return values of vtkPolyData::GetPoint.
While accessing the data created from a vtkCubeSource
or a vtkSphereSource, the coordinates returned are
centered to the global center (0,0,0), even if the center of
the original Cube/Sphere is positioned e.g. at (2,2,2).
Even the GetCenter() method returns a (0,0,0).
Is this a bug in GetPoint, or do I have to do some
coordinate transformation first? If so, where do I get
the additional information for that transformation?
The scenario is as follows:
- I used the vtkVRMLImporter to import some data.
- Data is accessed using
vtkVRMLImporter->GetRenderer()->GetActorCollection()->
GetNextItem()->GetMapper()->GetInput()
If anyone knows a better way to access the Polygonal
data from the vtkVRMLImporter, please let me know.
As far as I can see it, the Importer does not provide
functions for direct access to the imported data.
Ruediger
More information about the vtkusers
mailing list