Skip to content

Commit e473e44

Browse files
committed
Update nurbs.scad
1 parent ce0a5a2 commit e473e44

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

nurbs.scad

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -637,11 +637,11 @@ module debug_nurbs(control,degree,splinesteps=16,width=1, size, mult,weights,typ
637637
// extra_pts = Number of extra control points to add to provide additional freedom to control undesirable oscillations. Default: 0
638638
// 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
639639
//
640-
// Example(2D): 2D Clamped curve (default)
640+
// Example(2D): A NURBS curve where closed = false. (default)
641641
// data = [[0,0], [10,30], [25,15], [40,35], [60,10], [80,25]];
642642
// debug_nurbs_interp(data, 3);
643643
//
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.
645645
// data = [[0,0], [30,50], [60,40], [80,10], [50,-20], [20,-10]];
646646
// debug_nurbs_interp(data, 3, closed = true);
647647
//
@@ -668,7 +668,7 @@ module debug_nurbs(control,degree,splinesteps=16,width=1, size, mult,weights,typ
668668
// stroke(curve, width=0.5);
669669
// color("red") move_copies(data) circle(r=1, $fn=16);
670670
//
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.
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.
672672
// data = [[0,0], [20,30], [50,25], [80,0]];
673673
// // No tangent control (natural):
674674
// color("lime") stroke(nurbs_curve(nurbs_interp(data, 3)), width=0.3);
@@ -699,7 +699,7 @@ module debug_nurbs(control,degree,splinesteps=16,width=1, size, mult,weights,typ
699699
// debug_nurbs_interp(data, degree=3, splinesteps=32, width=2, data_size=1,
700700
// deriv=[2*RIGHT,[0,1],undef,undef,undef,RIGHT]);
701701
//
702-
// Example(2D,Med): Uncontrolled ends, but derivitive control of the data points adjacent to the ends.
702+
// Example(2D,Med): Unconstrained ends, but derivitive control of the data points adjacent to the ends.
703703
// data = [[0,0], [20,30], [30,90], [36,111], [50,25], [80,0]];
704704
// debug_nurbs_interp(data, degree=3, splinesteps=32, width=2, data_size=1,
705705
// deriv=[undef,[0,1],undef,undef,RIGHT,undef]);
@@ -737,11 +737,11 @@ module debug_nurbs(control,degree,splinesteps=16,width=1, size, mult,weights,typ
737737
// curvature=[undef,-1/10,undef,0,undef,undef],
738738
// extra_pts=2);
739739
//
740-
// Example(2D,Med): The same data but for an uncontrolled closed NURBS curve.
740+
// Example(2D,Med): The same data but for an unconstrained closed NURBS curve.
741741
// data = [[0,0], [20,30], [30,90], [36,111], [50,25], [80,0]];
742742
// debug_nurbs_interp(data, degree=3, splinesteps=32, width=2, data_size=1, closed = true);
743743
//
744-
// Example(2D,Med): Addng extra points to control the oscillation
744+
// Example(2D,Med): Adding extra points gives a better behaved curve that doesn't cross itself.
745745
// data = [[0,0], [20,30], [30,90], [36,111], [50,25], [80,0]];
746746
// debug_nurbs_interp(data, degree=3, splinesteps=32, width=2, data_size=1, closed = true,
747747
// extra_pts = 2);
@@ -761,7 +761,7 @@ module debug_nurbs(control,degree,splinesteps=16,width=1, size, mult,weights,typ
761761
// debug_nurbs_interp(data, degree=3, splinesteps=32, width=2, data_size=1, closed = true,
762762
// deriv=[undef,NAN,undef,undef,NAN,undef]);
763763
//
764-
// 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.
765765
// data = [[0,0],[0,10],[-5,20],[5,30],[15,20],[10,10],[10,0],[0,0]];
766766
// debug_nurbs_interp(data, degree=3, method="centripetal");
767767
//

0 commit comments

Comments
 (0)