geometryBase to Polyline/Mesh overload error in vs, c#

HI,

I tried to convert from geometryBase to Curve/Mesh in vs.
I am getting an error message :Overload has some invalid arguments.
Someone could tell me what I am doing wrong?

Thanks in advance!

You missed the ref keyword when calling into GetData. It should say:

if (!DA.GetData(0, ref geometryBase))
1 Like

Also curious why to make a mesh scale? Gh scale scales meshes.

ouch, thanks!

its the first step, later I¨ll do some transform action.

Then you might consider using compound transformations.
http://developer.rhino3d.com/wip/api/grasshopper/html/P_Grasshopper_Kernel_Types_GH_Transform_CompoundTransforms.htm

thanks Michael!