<html><head></head><body><div style="font-family:times new roman, new york, times, serif;font-size:16px;"><div>Hello,</div><div><br></div><div>I have the following routine to rotate an assembly about a line passing through two points pt1 and pt2. It works good for the rotation about the first line. But when I rotate about another line it produce unexpected results. Looks like I am missing something here.</div><div><br></div><div><span><div>    def RotateAboutAxis(assembly, pt1, pt2, degrees):</div><div><br></div><div>        vec = vtk.vtkVector3d(pt1[0]-pt2[0], pt1[1]-pt2[1], pt1[2]-pt2[2])</div><div><br></div><div><span>        transform = assembly.GetUserTransform()</span><br></div><div>        transform.Translate(pt1[0], pt1[1], pt1[2])</div><div>        transform.RotateWXYZ(degrees, vec[0], vec[1], vec[2])</div><div>        transform.Translate(-pt1[0], -pt1[1], -pt1[2])</div><div><br></div></span></div><div><br></div><div>Thanks</div><div>Rao</div></div></body></html>