[vtkusers] 3D transformation

marf marvin.huber at basf.com
Tue Aug 28 07:41:43 EDT 2018


If I understand your question right, you want to figure out the angle between
s1 and s2 on the x,y and z axis right?

This can be done using the dot product using

<http://vtk.1045678.n5.nabble.com/file/t342475/dotproduct0.png> 

and

<http://vtk.1045678.n5.nabble.com/file/t342475/dotproduct1.png> 

Where a is a vector pointing from s1 to s2 so it is 

{ (s2₁ - s1₁) , (s2₂ - s1₂) , (s2₃ - s1₃) }

And b is the vector for your axis, so for x
{ 1 , 0 , 0 }
for y
{ 0 , 1 , 0 }
and for z
{ 0 , 0 , 1 }



--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html


More information about the vtkusers mailing list