<div dir="ltr">The angle in radians can be computed with the following:<div><br></div><div> double angle = vtkMath::AngleBetweenVectors(normal1, normal2);</div><div><br></div><div>and the axis of rotation must be perpendicular to both normals, therefore</div><div>(if the planes are not parallel) the axis can be computed as follows:</div><div><br></div><div> double axis[3];</div><div><div class="gmail_extra"> vtkMath::Cross(normal1, normal2, axis);</div><div class="gmail_extra"> vtkMath::Normalize(axis);</div><div class="gmail_extra"><br></div><div class="gmail_extra">Is this the representation of the angle that you need? I wasn't sure</div><div class="gmail_extra">what you meant by "angle X,Y,Z".</div><div class="gmail_extra"><br></div><div class="gmail_extra"> - David</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Apr 9, 2016 at 12:31 PM, c_mihai via vtkusers <span dir="ltr"><<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Lets say I loaded two planes from vtkPlaneSource, they are defined by a<br>
center and a normal. How can I find the angle X,Y,Z between the two planes?<br></blockquote></div></div></div></div>