Hi ,
I have a situation that trimming a planar Brep with a plane fails using any tolerance.
you can see in the image that brep passes trough the plane clearly with a relatively large angle. however the trim fails (see the grasshopper file).
If you just rotate the object with tenth of degree , then the trim works.
this is causing my program fails.
thanks for your help.
@dale, is this a RhinoCommon bug or an oversight on our side? An intersection can be found with for the two objects, but Brep.Trim() returns an empty array in both C# and Python.
Thanks, @dale! You probably won’t believe this, but through this thread I’ve finally found out why I couldn’t get a 2 and a half year old Python script to work!
Hi @dale
Since I only have the cutting plane as input, I fist build a bounding box of the stock object based on the input plane , then built a planar brep based on the bottom face of the bounding box , move it to the plane position and do the split. then test which one of the results are on the positive side of the input plane.
is there a better workaround if you take a plane as input?
Interesting! I don’t know why I was expecting this to be much lighter in terms of computation.
Anyhow thanks for your feedback and looking forward to the fix .
I agree this is a serious bug and it was easy to “fix”. Please check out the version 7 release candidate coming out next week and let me know if the problem is fixed.