I have to convert a Geometry parameter object into point3d,but failed,i check the reason ,may be: Point3d doesnot inherit the “Geometrybase” class
but how to convert a point wraped in geometry parameter component into a point3d?
Thank you!
the problem code in c# script component:
private void RunScript(GeometryBase x, ref object A)
{
if(x is Point3d)
{
Point3d pt = (Point3d) x;
}
A = pt;
}
convertGeoToPoint.gh (3.1 KB)