RhinoScript used to have a very useful method to get the corner points of a polygon box oriented in any direction (Rhino.BoxPoints). This method doesn’t seem to be available in Python using rhinoscriptsyntax. I’m hoping somebody can point me in the right direction if I wanted to rebuild this function using RhinoCommon. Sorry in advance if it already exists somewhere and I’m not finding it.
Thanks!
Thanks, but if I’m not mistaken, that requires a Box object as input. I’m trying to do the same thing with a Brep. Maybe I’m missing an easy way to convert a box-like Brep into a Box.
Why you do not extract brep vertices?
Also if that brep is a box to convert it to box you need a plane. You can easily convert one of brep faces to brep and the use one of possible constructors https://developer.rhino3d.com/api/RhinoCommon/html/T_Rhino_Geometry_Box.htm
Of course. Sorry. I knew I was missing something simple. One of those days.
Thanks for the quick reply!