add more options for cylinder generation

This commit is contained in:
Stewart Allen 2024-07-20 15:29:04 -04:00
commit d45d0b618b
3 changed files with 39 additions and 19 deletions

View file

@ -2133,8 +2133,7 @@ class Polygon {
let z_side_top = z;
let z_side_bottom = z_bottom;
console.log({ chamfer });
// chamfer bottom only on negative chamfer
if (chamfer < 0) {
chamfer_top = 0;
chamfer_bottom = -chamfer;
@ -2156,7 +2155,6 @@ class Polygon {
if (chamfer_bottom) {
let inset = this.offset(chamfer_bottom);
console.log({ inset });
if (inset.length === 1) {
inset[0].setZ(0);
bottom_face = inset[0].earcut();