[vtkusers] polydata: change orientation; save different polydata into one file

AM 2ndadress at gmx.de
Wed Jan 17 14:25:05 EST 2007


Dear all,

I’ve got a vtkPolyData Object (from a .stl-file).

Now, I need to change the orientation of this object and store about 4 same
objects from a different perspective into one file.

Ex: 4 files |||| stored as `´-| in one file (this in 3D)

 

my ideas:

1.	select all triangles in the PolyDataObjects:  translate and rotate
it manually via the normal vector, get new points and vector, restore the
PolyDataObject in a file and join the 4 files together regarding the
co-ordinate system must fit!
neg: too much work for processor, a never ending story. How do I get and set
the points and vectors of polydata?
2.	change the perspective and position of the camera and then save data
from this point of view. Join the 4 files together... I don’t know, if it is
really possible. I didn’t find anything about this way.

 

Does anyone of you has an idea of:

*Getting and setting points and vectors of polydata belonging to one
triangle?

*Joining files? .stl, .vtk files ensuring that the co-ordinates fit? Maybe
copying the human readable fileparts together. 

*Rotating and translating polydata or any other data via vtk?

 

Some pseudo-code would be very helpful for me as a beginner. 

Best regards,

Anja

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070117/01ad9ede/attachment.htm>


More information about the vtkusers mailing list