Skip to content

Commit ce0a5a2

Browse files
committed
Twisty Torus
1 parent 106e6ee commit ce0a5a2

1 file changed

Lines changed: 7 additions & 15 deletions

File tree

nurbs.scad

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1738,14 +1738,14 @@ module nurbs_vnf(patch, degree, splinesteps=16, weights, type="clamped", mult, k
17381738
// surface = [ for(i=[0:4]) zrot(i*15,path3d(star(or=15,ir=13, n=7),i*15)), ];
17391739
// nurbs_interp_surface(surface, 3, col_wrap = true, caps = true);
17401740
//
1741-
// Example(3D,Med,VPR=[80,0,45],VPT=[0,0,20],VPD = 320): Instead of caps we can use degenerate end rows close the shape.
1741+
// Example(3D,Med,VPR=[80,0,45],VPT=[0,0,20],VPD = 320): Instead of caps we can use degenerate end rows to close the shape.
17421742
// surface = [ repeat([0,0,-15],14),
17431743
// for(i=[0:4]) zrot(i*15,path3d(star(or=15,ir=13, n=7),i*15)),
17441744
// repeat([0,0,5*15],14)
17451745
// ];
17461746
// nurbs_interp_surface(surface, 3, col_wrap = true);
17471747
//
1748-
// Example(3D,Med,VPR=[80,0,45],VPT=[0,0,20],VPD = 320): Controlling end shape with normals.
1748+
// Example(3D,Med,VPR=[80,0,45],VPT=[0,0,20],VPD = 320): Controlling the end shape with normals.
17491749
// surface = [ repeat([0,0,-15],14),
17501750
// for(i=[0:4]) zrot(i*15,path3d(star(or=15,ir=13, n=7),i*15)),
17511751
// repeat([0,0,5*15],14)
@@ -1758,19 +1758,12 @@ module nurbs_vnf(patch, degree, splinesteps=16, weights, type="clamped", mult, k
17581758
// repeat([0,0,5*15],14)
17591759
// ];
17601760
// nurbs_interp_surface(surface, 3, col_wrap = true, normal1 = DOWN*4, normal2 = 5*UP+2*RIGHT);
1761-
//
1762-
// Example(3D): EGG Smooth parametric ovoid. ~103 long, ~82 wide. 9 rings × 8 angles
1763-
// egg = [for (i = [0:8])
1764-
// let(phi = i * 180/8,
1765-
// r = 40 * sin(phi) * (1 - 0.25*cos(phi)),
1766-
// z = -52 * cos(phi))
1767-
// [for (j = [0:7])
1768-
// let(theta = j * 45)
1769-
// [r*cos(theta), r*sin(theta), z]
1770-
// ]
1761+
//
1762+
// Example(3D,Med,VPR=[60,0,45],VPT=[0,0,10],VPD = 150): Setting both col_wrap and row_wrap to true, yields a torus.
1763+
// surface = [
1764+
// for(i=[0:8]) zrot(i*15,path3d(star(or=25,ir=22, n=11),i*2)),
17711765
// ];
1772-
// nurbs_interp_surface(egg, 3, col_wrap = true);
1773-
// color("red") move_copies(flatten(egg)) circle(r=1, $fn=16);
1766+
// nurbs_interp_surface(surface, degree=3, col_wrap=true, row_wrap=true);
17741767
//
17751768
// Example(3D,VPT=[10,-25,60],VPR=[100,0,30],VPD=425): A Mushroom
17761769
// shape = [ repeat([0,0,-1],8),
@@ -1780,7 +1773,6 @@ module nurbs_vnf(patch, degree, splinesteps=16, weights, type="clamped", mult, k
17801773
// repeat([0,0,9*15],8)
17811774
// ];
17821775
// nurbs_interp_surface(shape, 3, normal1 = DOWN, normal2 = UP*0.8, col_wrap = true, row_edges = 7);
1783-
//
17841776
//
17851777
// Example(3D,Med,NoAxes,VPT=[0,0,75],VPR=[90,0,0],VPD=900): Controlling mushroom crown shape with normal2.
17861778
// shape = [ repeat([0,0,-1],8),

0 commit comments

Comments
 (0)