Request for a function oriented bounding rectangle numpy

Hi,

Thanks to many good functions like compas.geometry.oriented_bounding_box_numpy which is irreplaceable by Rhino. Geometry.

To rich the functionality of COMPAS, I wish there will be any possibility of adding a function called oriented_bounding_rectangle_numpy or similar to enhance the 2D bounding calculation.

Currently the oriented_bounding_box_numpy can be used for 2D cases, but an independent oriented bounding rectangle function could be more inexpensive for the computation and easy to use.

Thanks!

hi,

could you add this as a feature request on the issue tracker?
here it will be forgotten…

thanks!

Hi,

Thanks for the reply!

Absolutely! the feature request is created here.

hi,

while working on the geometry refactor, i realised that this function actually already exists. see here https://github.com/compas-dev/compas/blob/5d6e68d55a98f0fe051afe3f461c7503dd1331b7/src/compas/geometry/bbox/bbox_numpy.py#L162

or is this not what you are looking for?

it also uses the convex hull of the points in the background, but only the 2D coordinates…

oh, thanks! some how didn’t find it before. That works!

i am still testing the functionality on different data sets but soonish a reliable version of the functions should be available…

1 Like