Not sure if this was intentional or not, but I noticed when using the ExplodePolysurface method in Rhinoscript that the exploded surfaces would maintain their layer assignments but in the Python version the exploded surfaces go to the current layer.
Easy enough to work around, but I thought I would point this out.
I noticed that the BooleanDifference method also ignores previous layer assignment, and drops the result on the current layer. I prefer the Rhinoscript method of maintaining the layer assignment of the original data.
If you could show me how to do add this, I could add a function to my scripts (MyBooleanDifference for example) and not need to wait for a future SR.
Hi Dan,
Vittorio also brought up this BooleanDifference bug at
This is actually quite a bit of work and I can’t really just “show” you how to do this since the functionality required is not in RhinoCommon yet.
@DanBayn@vittorio - Well this was painful… but I was curious. This is a partial effort for BooleanDifference - but it doesn’t check first for intersections, so if the objects to subtract don’t intersect and DeleteObjects is set to yes, it removes them anyway. That can be fixed with some work, I guess… Anyway, FWIW… --Mitch