I can’t seem to find clear documentation for the rhinoscriptsyntax’s (rs for short) coerce methods in the rs method documentation website: https://developer.rhino3d.com/api/RhinoScriptSyntax/#collapse-IsBrep. While a brief explanation does show up when typing the specific method in the Rhino Python scripting window, it still leaves me with a couple of questions.
My understanding is that given a guid, rs.coerceX methods return the actual object. However, I’m wondering if the exact object that is specified is returned or a morphed version of it? My confusion stems from the scenario below.
I have an extrusion object’s guid. rs.IsBrep(extrusion object’s guid) returns True, so I’m assuming that extrusion objects are first Extrusions, and then Breps (please correct me if I’m wrong). I want this exact extrusion object (instead of its guid), but as a brep object so that I can pass it into methods that require breps as arguments.
However, when I call rs.coercegeometry(guid), I get an object of type Extrusion, not Brep. When I call rs.coercebrep(guid), I do get a brep obj that can be passed into methods fine, but I’m worried that this brep obj is not the original extrusion obj? Do these two objects have the exact same features? Has anything been changed? Are they the exact same object, just with type changed?
Any help would be greatly appreciated. Thanks.