[vtkusers] Transform a set of xyz datas

David Gobbi dgobbi at imaging.robarts.ca
Wed Dec 11 11:35:02 EST 2002


Hi Tobias,

double NewPoint[3];
t1->TransformPoint(Point,NewPoint);

 - David

-- 
  David Gobbi, MSc                dgobbi at imaging.robarts.ca
  Advanced Imaging Research Group
  Robarts Research Institute, University of Western Ontario

On Wed, 11 Dec 2002, Tobias Aschoff wrote:

> Dear VTK users,
>
> to transform a Set of xyz data, I want use the class vtkTransform. I try
> it in this way:
>
>
> 	// Anlegen einer Instanz zur Transformation
> 	vtkTransform *t1 = vtkTransform::New() ;
>
> 	// Setzen der Rotations und Translationsparameter
> 	t1->RotateX ( m_d_Rot_X ) ;
> 	t1->RotateY ( m_d_Rot_Y ) ;
> 	t1->RotateZ ( m_d_Rot_Z ) ;
> 	t1->Translate ( m_d_Trans_X , m_d_Trans_Y , m_d_Trans_Z ) ;
>
> 	double Point[3] = { 0.3 , 3.5 , 1.3 } ;
>
> 	??????
>
>
>
> My problem is: I don't know how it is working continue. What I have to
> do with my point to transform it by using t1? Did I use the right class
> for this.
>
> Thanks for all request.
>
> Tobias
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>




More information about the vtkusers mailing list