Squishcurve

Hi, I cannot find any example to squish a curve even if there’s the function… Mi intention is to squish a surface, but as the squisher doesn’t mantain the original shape and before squish seems to apply untrim I though to squish as well the edges curves then trim or so on.
Anyone that can help me?
I’m doing as follow:

Blockquote
ObjRef curve;
var cc = RhinoGet.GetOneObject(“Sele”, false, ObjectType.Curve, out curve);
var con = squishercrv.SquishCurve(curve.Curve());
if (con != null)
RhinoDoc.ActiveDoc.Objects.Add(con);

obviously I already tried to get directly the contour curves from the surface but no success

Hi @sartoriedo,

Some background on the Squish command:

https://docs.mcneel.com/rhino/7/help/en-us/index.htm#commands/squish.htm#(null)

Can you describe in more detail what you are trying to do and why?

Thanks,

– Dale

Hi @dale, I’m tring squishing using a function written in C#, is a very easy task and consist in flat a curved surface, that could be a single or double curvature one… I used the code showed in my first message with Squisher object. The function squish the surface but I noted that the border is different. Then I tried to squish with rhinoceros command, the one you pointed me, and I saw that is like code function apply an untrim before squish… How I verified this? If I untrim the surface before using rhino command squish will be identical at the end…

Hi @dale still no info about? =)

Hi @sartoriedo,

Can you upload an example of a surface you are trying to squish?

Thanks,

– Dale