Hello,
I am writing a component in Visual Studio that sorts a list of geometries by coordinates based on a corresponding list of points. I am using a Geometrybase input to cover various types of geometry and it works fine for everything so far except when I input surfaces. If the surfaces in my list are trimmed they become untrimmed in the output. Naturally, I don’t get this error if I cast them to a Brep parameter prior to inputting them in my component, so I am trying to figure out a way to cast them to Breps inside my component rather than having to do it outside. My output Parameter is GeometryBase as well. I have attached a screenshot of the code where I am trying to do the conversion from Surface to Brep. Is there any other way to keep my surfaces trimmed ? Any help would be greatly appreciated.
I am having similar issue.
var type = geoBase.GetType();
type name is Rhino.Geometry.PlaneSurface;
trimmed surface is converted to PlaneSurface when using GeometryBase.
My trimmed surface is plane but it is trimmed.
@arpanjain707 pls post an example file and a script to run, this makes it easier to help you forward. From your description it is impossible to tell what the result is you are after. There are most likely other methods you can use to achieve the desired result.