Message 1 of 5
Can't use MeasureManager.getMinimumDistance on temporary brep objects?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I was a bit surprised to find that when I try to use MeasureManager.getMinimumDistance() on temporary brep objects, I get an "invalid argument" error:
RuntimeError: 3 : invalid argument geometryOne
The workaround of course is to create an occurrence and add the bodies, and then use the imported, non-temporary bodies. But I generally prefer to work with temporary brep objects when possible, for speed.
I was just wondering if there was some technical limitation that prevents this, or maybe it's just an oversight? And if so, could support be added for this?
Sample code:
sphere1 = adsk.fusion.TemporaryBRepManager.get().createSphere(Point3D.create(0, 0, 0), 1)
sphere2 = adsk.fusion.TemporaryBRepManager.get().createSphere(Point3D.create(2, 0, 0), 1)
result = adsk.core.Application.get().measureManager.measureMinimumDistance(sphere1, sphere2)
print(result)