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

Hendrik Belitz hbelitz at darkon.info
Wed Jan 17 15:12:18 EST 2007


Hi Anja,

What about using

3. vtkTransformPolyDataFilter, which will transform a Polydata object, 
including an adjustment of all point coordinates and normals: 
http://www.vtk.org/doc/release/5.0/html/a02121.html

Regards
Hendrik

AM schrieb:
>
> 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
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>   




More information about the vtkusers mailing list