Deriving a class from vtkPolyData
joris 2
joris.2 at esat.kuleuven.ac.be
Thu Dec 16 05:32:36 EST 1999
Hi,
I want to represent surfaces that possess more information then vtkPolyData. It seems to me that the most logical way would be to derive a class from
vtkPolyData. This however causes some difficulties:
- When I send such an object through a vtkPolyDataToPolyDataFilter, the output is vtkPolyData, so Ive lost the extra information..
- My own filters would be vtkDerivedClassToDerivedClassFilter (derived from vtkPolyDataToPolyDataFilter) and delete the output created by
vtkPolyDataToPolyDataFilter. This does not look very nice and might become impossible if the output becomes a private member.
I considered other possibilities but I cant figure out what is the right way to do it.
-defining a class that has a member of type vtkPolyData. I send this member through the filter, and catch the output.
-Putting the extra information in the FieldData member of vtkPolyData. This however caused some problems because
Aa)FieldData is not passed by filters
b) vtk itself uses the FieldData. This caused very strange (platform dependent) effects.
All suggestions that can help me decide on how to do it right are welcome.
Thanx,
Joris
-----------------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>. For help, send message body containing
"info vtkusers" to the same address. Live long and prosper.
-----------------------------------------------------------------------------
More information about the vtkusers
mailing list