Hi,
I need some help with the Transform Function in rhino3dm - it doesn’t seem to be working. here is my code:
point = Point3d(1.0, 2.0, 3.0)
xform = Transform(0)
xform = xform.Translation(10, 10, 30)
print(xform.ToFloatArray(True))
print(xform.IsValid)
print("before", point)
point.Transform(xform)
print("after", point)
Output:
(1.0, 0.0, 0.0, 10.0, 0.0, 1.0, 0.0, 10.0, 0.0, 0.0, 1.0, 30.0, 0.0, 0.0, 0.0, 1.0)
True
before 1.0,2.0,3.0
after 1.0,2.0,3.0
The transformation matrix is getting created correctly but is not modifying the point. Am I doing something wrong in the function call?
Thanks