We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49a3d31 commit 35a8d73Copy full SHA for 35a8d73
Geometry_Engine/Query/StartPoint.cs
@@ -66,14 +66,10 @@ public static Point StartPoint(this Line line)
66
67
public static Point StartPoint(this NurbsCurve curve)
68
{
69
- //TODO: This should be based on the basis function?
70
- if (!curve.IsPeriodic())
71
- return curve.ControlPoints.FirstOrDefault();
72
- else
73
- {
74
- Base.Compute.RecordError("StartPoint is not implemented for periodic NurbsCurves");
+ if (curve.IsNull())
75
return null;
76
- }
+
+ return curve.PointAtParameter(0);
77
}
78
79
/***************************************************/
0 commit comments