You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Python negative indexing is possible, so I would expect this to work:
import rhino3dm
model = rhino3dm.File3dm()
for i in range(2):
model.Objects.AddPoint(rhino3dm.Point3d(i, 0, 0))
print(model.Objects[-1].Geometry.Location)
print(model.Objects[-2].Geometry.Location)
I would be happy to prepare a PR to make the behaviour of File3dmObjectTable.__getitem__() closer to a Python list, but I am wondering if this would be considered acceptable.
The text was updated successfully, but these errors were encountered:
In Python negative indexing is possible, so I would expect this to work:
However, this does not work because of:
rhino3dm/src/bindings/bnd_extensions.cpp
Line 674 in 2be2968
I would be happy to prepare a PR to make the behaviour of
File3dmObjectTable.__getitem__()
closer to a Pythonlist
, but I am wondering if this would be considered acceptable.The text was updated successfully, but these errors were encountered: