diff --git a/rhinocommon/cs/SampleCsCommands/SampleCsAddNurbsCircle.cs b/rhinocommon/cs/SampleCsCommands/SampleCsAddNurbsCircle.cs index 24ce70b5..bc1c0b8c 100644 --- a/rhinocommon/cs/SampleCsCommands/SampleCsAddNurbsCircle.cs +++ b/rhinocommon/cs/SampleCsCommands/SampleCsAddNurbsCircle.cs @@ -39,6 +39,10 @@ protected override Result RunCommand(RhinoDoc doc, RunMode mode) if (curve.IsValid) { + var length = curve.GetLength(); + var domain = new Interval(0.0, length); + curve.Domain = domain; + doc.Objects.AddCurve(curve); doc.Views.Redraw(); } diff --git a/rhinocommon/cs/SampleCsCommands/SampleCsAddNurbsCurve.cs b/rhinocommon/cs/SampleCsCommands/SampleCsAddNurbsCurve.cs index 091a8647..1d420d7b 100644 --- a/rhinocommon/cs/SampleCsCommands/SampleCsAddNurbsCurve.cs +++ b/rhinocommon/cs/SampleCsCommands/SampleCsAddNurbsCurve.cs @@ -61,6 +61,11 @@ protected override Result RunCommand(RhinoDoc doc, RunMode mode) if (curve.IsValid) { + // Parameterization should match the length of a curve + var length = curve.GetLength(); + var domain = new Interval(0.0, length); + curve.Domain = domain; + doc.Objects.AddCurve(curve); doc.Views.Redraw(); } diff --git a/rhinocommon/cs/SampleCsCommands/SampleCsNurbsCircle.cs b/rhinocommon/cs/SampleCsCommands/SampleCsNurbsCircle.cs index b8d9561f..d891188d 100644 --- a/rhinocommon/cs/SampleCsCommands/SampleCsNurbsCircle.cs +++ b/rhinocommon/cs/SampleCsCommands/SampleCsNurbsCircle.cs @@ -78,6 +78,11 @@ protected override Result RunCommand(RhinoDoc doc, RunMode mode) if (curve.IsValid) { + // Parameterization should match the length of a curve + var length = curve.GetLength(); + var domain = new Interval(0.0, length); + curve.Domain = domain; + doc.Objects.AddCurve(curve); doc.Views.Redraw(); }