Solidly stuck on trim operation!

I need the array of curves as per last frame of video… only the curves segments INSIDE the boundary curve…

this seems like it should be simple, but its had me at it for hours now going nowhere

Any pointers please?

input is a curve, and an array of curves

as so:

RhinoGet.GetOneObject(“Select Border Curve”, true, ObjectType.Curve, out InputCurve);
if (null == InputCurve) return Result.Cancel;

and an array of curves generated to fit in its bounding box

List CurveArray = new List();
int count = (int)(YLength / PanelTolerance);
for (int i = 0; i < count; i++)
{
var xf = Transform.Translation(translateVector);
arrayline.Transform(xf);
CurveArray.Add(arrayline.ToNurbsCurve());
}

video probably easier to explain that the message.

Hi @ChristopherBotha,

One option is to create a really line that intersects the shape curve. Then use Intersection.CurveCurve, collect the intersection points and create the interior lines.

Another option would be to create a surface from the planar shape curve and then use Brep.CreateContourCurves to create the interior contour curves.

– Dale

1 Like

Thanks Dale. 90% there… some wierd scaling issue to resolve in my image converstion then the intent is to trim with said curve. Ill update result when i complete.