Hi all,
I am using the native C#-scripting component and like to pass a Cone as a input. However, as it doesn’t have Cone as a type hint I need to pass it as something else. I’ve therefore tried to add it as a Brep and a GeometryBase input but in both cases I can’t cast it back to a Cone afterwards (I like to access some Cone-properties such as ApexPoint and BasePoint).
Tried normal casting like below, but only get errors.
Cone castedCone = (Cone) inputCone;
Do anyone know how to cast a Brep or a GeometryBase to a Cone? Or have any other suggestion how I can have a Cone as an input and still use all of the Cone-properties?