Hi,
Script basically calculates minimum Bounding Rectangle for 2D Surface.
When Surface is given as GeometryBase for c# component it calculates minimum Bounding Rectangle as expected.
However when Surface is given as input for c# component it gives different bounding rectangle.
How can I fix it? Basically C# Gh component I am making takes only Brep as a input parameter. A method then calculates Minimum Bounding Rectangle on Brep/Surface. Now when I pass surface as input to the same method I get different result and also if I say Surface.Duplicate() and pass it as GeometryBase to method I get wrong result. In this case it is only working if I pass the input to C# component as GeometryBase. what am I doing wrong here?
See attached images:
Thanks in advance!!!
pic 1) Geometrybase input is used to calculate minimum bounding rectangle
pic 2) Surface input is used to calculate minimum bounding rectangle
pic 3) Script