Some bugs about bounding box?

boungdingboxbug.gh (25.9 KB)

I did not understand why get this err? seems deepper bugs about rhinocommon.Can any help? Thanks in advance. @DavidRutten @stevebaer

Seems a bug in rhino8

Look at the thickness of the boxes. They are very thin. The boxes should be flat boxes.

Your objects are planar within tolerance but maybe off by a tiny tiny bit and that confuses the bounding box component.

As a test, I created a rectangle on the origin in the XY plane and moved one of the corners upwards by 0.000000000005 units. So the rectangle is still planar. The bounding box of the transformed rectangle is a box and once the rectangle is projected back to the XY plane it is a flat box…

bbox_flatbox_threshold.gh (10.0 KB)

1 Like

Thank you for your reply! I think this is the answer!

I just tried to find out what’s happening in your example.

The solution however might require adding a threshold to the bounding box component so that the plane coordinates bounding box of a planar curve ends up as flat box.

@dale is this something for you?

Yes,It will get error when you try to conver a very thin box to a brep. I think is a problem of robustness.

We wouldn’t see the error if the bounding box component created a flat box.

Yes,But as a user I think it should not to be error with all the box when conver to brep

That’s the whole idea. A flat box is a surface and than is a brep.

@huaxiamengqing1 Can you please uncheck the solution box above?

OK,but your reply really helped me solve my problem.

Hi @martinsiegrist,

The attached works more like Rhino’s BoundingBox command.

TestBoundingBox.gh (32.8 KB)

– Dale

1 Like

Thanks @dale I think the Grasshopper bounding box would work just like that if it had a bit of tolerance.

It seems that many Rhino commands run more stably than the corresponding Grasshopper batteries.