I have a case where a component has to output different geometry types:
protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager) {
pManager.AddGeometryParameter("O", "O", "Output", GH_ParamAccess.tree);
}
I output different geometry types by casting to GeometryBase:
By different geometry types I mean: Curves, Polylines, Surfaces, Meshes and Planes.
var geo = new DataTree<GeometryBase>();
geo.Add(GH_Convert.ToGeometryBase(SomeGeometry), path);
The problem happens when I try to convert a Plane to GeometryBase.
During the conversion the plane becomes a small rectangle surface.
How can I output planes properly?