SquishBack in Grasshopper

Hello everyone, I’m trying to use SquishBack from grasshopper. I managed to Squish some mesh using Squisher.SquishMesh, and I found the documentation on the Squisher.SquishBack2dMarks() here, but I can’t get it working.

My very basic code is the following

var squisher = new Rhino.Geometry.Squisher();mesh,crvs);
var marks = squisher.SquishBack2dMarks(mesh,crvs);

A = marks;

But I have to admit I don’t understand the error :

Error (CS0176): Member 'Squisher.SquishBack2dMarks(GeometryBase, IEnumerable<GeometryBase>)' cannot be accessed with an instance reference; qualify it with a type name instead (line 58)

Would anyone have an idea on what is going on ?
A simple gh setup file : squishback.gh (14.4 KB)

Thanks !

Okay nevermind, I figured it out… SquishBack actually is a static method, and cannot be accessed the same way Squish is. Still a bit obscure to me, but less than before :face_with_monocle:

Corrected code in case anyone stumble accross the same questions :

var squisher = new Rhino.Geometry.Squisher();
var marks = Squisher.SquishBack2dMarks(mesh, crvs);
A = marks;
1 Like