Transform function not working in python rhino3dm

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

Works just fine here in Rhino 7

Oh, nvm. I just realized this is about rhino3dm, let me check that.

The Point3d.Transform function doesn’t transform in place, rather it returns the transformed point.

so if you do point = point.Transform(xform) you should get what you are after.