algorithmic modeling for Rhino
Hi!
I am using Curve.CreateInterpolatedCurve(IEnumerable<Point3d>, int deg) to create a curve between some points. The curves produced seem to have loops between certain points, usually at the beginning or the end (see attached screen cap).
Can anyone explain why these loops exist and how to prevent them ?
Thank you!
Tags:
Hi Chris,
Looks like your curve is of higher degree (>3). What curve degree did you use?
RhinoCommon page for method Curve.CreateInterpolatedCurve recommends degree 3 as the one with which the method works the best.
I used degree = 3. Here is a snippet of the code:
Curve InterpolatePoints(IEnumerable<Point3d> pointSeq)
{
return Curve.CreateInterpolatedCurve(pointSeq, 3);
}
Some of the points used come from a call to Curve.DivideByLength method. There is an existing curve that I am passing to DivideByLength. The resulting points are combined with other points into a List<Point3d> object and then passed to CreateInterpolatedCurve.
Perhaps it's the original curve that is deg > 3 ?
If I create new points using the Point command that run along the curve passed to DivideByLength and pass those points to CreateInterpolatedCurve then the resulting curve does not have any loops. It must be something with the curve being divided.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by