Skip to content

Commit 47f1fd5

Browse files
Copilotaparajit-pratapCopilot
authored
DYN-10100: Add node documentation for NurbsCurve.PeriodicKnots and PeriodicControlPoints (DynamoDS#16905)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: aparajit-pratap <5710686+aparajit-pratap@users.noreply.github.com> Co-authored-by: Aparajit Pratap <aparajit.pratap@autodesk.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent c9c2f6d commit 47f1fd5

8 files changed

+1797
-93
lines changed

doc/distrib/NodeHelpFiles/en-US/Autodesk.DesignScript.Geometry.NurbsCurve.PeriodicControlPoints.dyn

Lines changed: 864 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
## In Depth
2+
Use `NurbsCurve.PeriodicControlPoints` when you need to export a closed NURBS curve to another system (for example Alias) or when that system expects the curve in its periodic form. Many CAD tools expect this form for round-trip accuracy.
3+
4+
`PeriodicControlPoints` returns the control points in the *periodic* form. `ControlPoints` returns them in the *clamped* form. Both arrays have the same number of points; they are two different ways to describe the same curve. In the periodic form, the last few control points match the first few (as many as the curve degree), so the curve closes smoothly. The clamped form uses a different layout, so the point positions in the two arrays differ.
5+
6+
In the example below, a periodic NURBS curve is built with `NurbsCurve.ByControlPointsWeightsKnots`. Watch nodes compare `ControlPoints` and `PeriodicControlPoints` so you can see the same length but different point positions. The ControlPoints are seen with a red color so they appear distinctly from the PeriodicControlPoints, which are in black, in the background preview.
7+
___
8+
## Example File
9+
10+
![PeriodicControlPoints](./Autodesk.DesignScript.Geometry.NurbsCurve.PeriodicControlPoints_img.jpg)
379 KB
Loading

doc/distrib/NodeHelpFiles/en-US/Autodesk.DesignScript.Geometry.NurbsCurve.PeriodicKnots.dyn

Lines changed: 864 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
## In Depth
2+
Use `NurbsCurve.PeriodicKnots` when you need to export a closed NURBS curve to another system (for example Alias) or when that system expects the curve in its periodic form. Many CAD tools expect this form for round-trip accuracy.
3+
4+
`PeriodicKnots` returns the knot vector in the *periodic* (unclamped) form. `Knots` returns it in the *clamped* form. Both arrays have the same length; they are two different ways to describe the same curve. In the clamped form, knots repeat at the start and end so the curve is pinned to the parameter range. In the periodic form, the knot spacing repeats at the start and end instead, which gives a smooth closed loop.
5+
6+
In the example below, a periodic NURBS curve is built with `NurbsCurve.ByControlPointsWeightsKnots`. Watch nodes compare `Knots` and `PeriodicKnots` so you can see the same length but different values. Knots is the clamped form (repeated knots at the ends), and PeriodicKnots is the unclamped form with the repeating difference pattern that defines the curve's periodicity.
7+
___
8+
## Example File
9+
10+
![PeriodicKnots](./Autodesk.DesignScript.Geometry.NurbsCurve.PeriodicKnots_img.jpg)
380 KB
Loading

doc/distrib/xml/en-US/Analysis.xml

Lines changed: 0 additions & 88 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

doc/distrib/xml/en-US/ProtoGeometry.XML

Lines changed: 49 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)