Fixes for rect(center=)

This commit is contained in:
Revar Desmera
2021-12-13 16:31:14 -08:00
parent aa109de9d7
commit f9c5dc2cb9
7 changed files with 24 additions and 18 deletions

View File

@@ -1070,8 +1070,8 @@ function _triangulate_planar_convex_polygons(polys) =
// bent2 = vnf_bend(vnf2, axis="Y");
// vnf_polyhedron([bent1,bent2]);
// Example(3D):
// rgn = union(rect([100,20],center=true),
// rect([20,100],center=true));
// rgn = union(rect([100,20]),
// rect([20,100]));
// vnf0 = linear_sweep(zrot(45,p=rgn), height=10);
// vnf1 = up(50, p=vnf0);
// vnf2 = down(50, p=vnf0);
@@ -1080,7 +1080,7 @@ function _triangulate_planar_convex_polygons(polys) =
// vnf_polyhedron([bent1,bent2]);
// Example(3D): Bending Around X Axis.
// rgnr = union(
// rect([20,100],center=true),
// rect([20,100]),
// back(50, p=trapezoid(w1=40, w2=0, h=20, anchor=FRONT))
// );
// vnf0 = xrot(00,p=linear_sweep(rgnr, height=10));
@@ -1090,7 +1090,7 @@ function _triangulate_planar_convex_polygons(polys) =
// vnf_polyhedron([bent1]);
// Example(3D): Bending Around Y Axis.
// rgn = union(
// rect([20,100],center=true),
// rect([20,100]),
// back(50, p=trapezoid(w1=40, w2=0, h=20, anchor=FRONT))
// );
// rgnr = zrot(-90, p=rgn);
@@ -1101,7 +1101,7 @@ function _triangulate_planar_convex_polygons(polys) =
// vnf_polyhedron([bent1]);
// Example(3D): Bending Around Z Axis.
// rgn = union(
// rect([20,100],center=true),
// rect([20,100]),
// back(50, p=trapezoid(w1=40, w2=0, h=20, anchor=FRONT))
// );
// rgnr = zrot(90, p=rgn);