[Question / Issue] Rhino.Geometry.Surface.GetSurfaceSize

I am talking about this:
https://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_Geometry_Surface_GetSurfaceSize.htm

The description says it should give the main / gauge dimensions of the selected surface.

However it in fact gives the dimensions of the untrimmed surface. If you have a big single surface that you would split into pieces for manufacturing (think ship’s shell plates) one doesn’t need to get the gauge dimensions of the whole ship. Since this is not specified in the api that it will give the untrimmed surface dimensions I consider this an issue.

Oftentimes the Surface class methods work on the entire untrimmed surface - also some of the rhinoscript methods. Don’t know if you convert it to a BrepFace and then Shrink it if that works any better for you?

shrink=Rhino.Geometry.BrepFace.ShrinkDisableSide.ShrinkAllSides
brep_face.ShrinkFace(shrink)
shrunk_size=brep_face.GetSurfaceSize()
2 Likes

That worked like a charm, thanks a lot Mitch. :partying_face: