algorithmic modeling for Rhino
hey all!
it's very easy to get a list of GeometryBase as input to a C# plugin, but how to get a tree?
It seems we want something like
GH_Structure<GH_GeometryBase> inputTree;
DA.GetDataTree(0, out inputTree);
but there is no GH_GeometryBase
Unless it's in a different namespace?
Tags:
Can't check right now, but you can also try GH_Structure<IGH_GeometricGoo>
thank you!
yes got with:
GH_Structure<IGH_GeometricGoo> inputGeometry;
if (!DA.GetDataTree(0, out inputGeometry))
{
return;
}
and
var oldGeometryGoo = inputGeometry[path][0];
var oldGeometry = Grasshopper.Kernel.GH_Convert.ToGeometryBase(oldGeometryGoo);
Welcome to
Grasshopper
Added by morteza khorsand 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by