You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// extra_pts = Number of extra control points to add to provide additional freedom to control undesirable oscillations. Default: 0
638
638
// smooth = Smoothness criterion used with extra control points. Set to 1 (minimize control-polygon length), 2 (minimize control-polygon bending) or 3 (minimize curve bending energy). Default: 3
639
639
//
640
-
// Example(2D): 2D Clamped curve (default)
640
+
// Example(2D): A NURBS curve where closed = false. (default)
641
641
// data = [[0,0], [10,30], [25,15], [40,35], [60,10], [80,25]];
642
642
// debug_nurbs_interp(data, 3);
643
643
//
644
-
// Example(2D,VPT=[40,12,0],VPD = 200): Closed curve - Do NOT repeat the first point at the end.
644
+
// Example(2D,VPT=[40,12,0],VPD = 200): A NURBS curve where closed = true - Do NOT repeat the first point at the end.
645
645
// data = [[0,0], [30,50], [60,40], [80,10], [50,-20], [20,-10]];
// Example(2D,Med,VPT=[40,20,0],VPD=160): Endpoint tangent control - Specify start and/or end tangent vectors. Each vector is automatically scaled by the total chord length; a unit vector produces natural arc-length speed. Magnitude > 1 increases pull, < 1 weakens it.
671
+
// Example(2D,Med,VPT=[40,20,0],VPD=160): Endpoint tangent control — Specify start and/or end tangent vectors. Each vector is automatically scaled by the total chord length; a unit vector produces natural arc-length speed. Magnitude > 1 increases pull, < 1 weakens it.
// Example(2D,NoAxes): Keyhole Shape: Simply interpolating a NURBS through the data points yields disappointing results.
764
+
// Example(2D,NoAxes): Keyhole Shape: A NURBS curve where closed = false, and the first and last data point the same. But simply interpolating a NURBS through the data points yields disappointing results.
765
765
// data = [[0,0],[0,10],[-5,20],[5,30],[15,20],[10,10],[10,0],[0,0]];
0 commit comments