Skip to content

Commit 35a8d73

Browse files
IsakNaslundBhFraser Greenroyd
authored andcommitted
Fix StartPoint for NurbsCurve
1 parent 49a3d31 commit 35a8d73

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

Geometry_Engine/Query/StartPoint.cs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,10 @@ public static Point StartPoint(this Line line)
6666

6767
public static Point StartPoint(this NurbsCurve curve)
6868
{
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");
69+
if (curve.IsNull())
7570
return null;
76-
}
71+
72+
return curve.PointAtParameter(0);
7773
}
7874

7975
/***************************************************/

0 commit comments

Comments
 (0)