1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-13 18:24:28 +02:00

update docs

This commit is contained in:
Justin Lin
2020-04-09 14:54:37 +08:00
parent c3d5484fde
commit d3cd562d72
4 changed files with 16 additions and 16 deletions

View File

@@ -29,13 +29,13 @@ Transform a point inside a rectangle to a point inside a circle. You can use it
]; ];
for(line = rows) { for(line = rows) {
twisted = [for(p = line) ptf_circle(size, p)]; transformed = [for(p = line) ptf_circle(size, p)];
hull_polyline3d(twisted, thickness = .1); hull_polyline3d(transformed, thickness = .1);
} }
for(line = columns) { for(line = columns) {
twisted = [for(p = line) ptf_circle(size, p)]; transformed = [for(p = line) ptf_circle(size, p)];
hull_polyline3d(twisted, thickness = .1); hull_polyline3d(transformed, thickness = .1);
} }
![ptf_circle](images/lib2x-ptf_circle-2.JPG) ![ptf_circle](images/lib2x-ptf_circle-2.JPG)

View File

@@ -33,13 +33,13 @@ Transforms a point inside a rectangle to a point of a ring. It can create things
]; ];
for(line = rows) { for(line = rows) {
twisted = [for(p = line) ptf_ring(size, p, radius, 360, 180)]; transformed = [for(p = line) ptf_ring(size, p, radius, 360, 180)];
hull_polyline3d(twisted, thickness = .5); hull_polyline3d(transformed, thickness = .5);
} }
for(line = columns) { for(line = columns) {
twisted = [for(p = line) ptf_ring(size, p, radius, 360, 180)]; transformed = [for(p = line) ptf_ring(size, p, radius, 360, 180)];
hull_polyline3d(twisted, thickness = .5); hull_polyline3d(transformed, thickness = .5);
} }
![ptf_ring](images/lib2x-ptf_ring-2.JPG) ![ptf_ring](images/lib2x-ptf_ring-2.JPG)

View File

@@ -33,13 +33,13 @@ Transforms a point inside a rectangle to a point of a sphere. It can create thin
]; ];
for(line = rows) { for(line = rows) {
twisted = [for(p = line) ptf_sphere(size, p, radius, angle)]; transformed = [for(p = line) ptf_sphere(size, p, radius, angle)];
hull_polyline3d(twisted, thickness = .5); hull_polyline3d(transformed, thickness = .5);
} }
for(line = columns) { for(line = columns) {
twisted = [for(p = line) ptf_sphere(size, p, radius, angle)]; transformed = [for(p = line) ptf_sphere(size, p, radius, angle)];
hull_polyline3d(twisted, thickness = .5); hull_polyline3d(transformed, thickness = .5);
} }
![ptf_sphere](images/lib2x-ptf_sphere-2.JPG) ![ptf_sphere](images/lib2x-ptf_sphere-2.JPG)

View File

@@ -35,13 +35,13 @@ Transforms a point inside a rectangle to a point of a torus. It can create thing
]; ];
for(line = rows) { for(line = rows) {
twisted = [for(p = line) ptf_torus(size, p, radius, angle, twist)]; transformed = [for(p = line) ptf_torus(size, p, radius, angle, twist)];
hull_polyline3d(twisted, thickness = .5); hull_polyline3d(transformed, thickness = .5);
} }
for(line = columns) { for(line = columns) {
twisted = [for(p = line) ptf_torus(size, p, radius, angle, twist)]; transformed = [for(p = line) ptf_torus(size, p, radius, angle, twist)];
hull_polyline3d(twisted, thickness = .5); hull_polyline3d(transformed, thickness = .5);
} }
![ptf_torus](images/lib2x-ptf_torus-2.JPG) ![ptf_torus](images/lib2x-ptf_torus-2.JPG)