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


#1

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!


(David Rutten) #2

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

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

(Michael Pryor) #3

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


#4

ouch, thanks!


#5

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


(Michael Pryor) #6

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


#7

thanks Michael!