Fix multiple extrusions of the same outline in cases

This commit is contained in:
Bán Dénes 2023-01-23 10:53:39 +01:00
parent 77778249d2
commit d2c3999d41
5 changed files with 27 additions and 17 deletions

View file

@ -1,4 +1,4 @@
function square_outline_fn(){
function square_extrude_5_outline_fn(){
return new CSG.Path2D([[-2.5,-2.5],[2.5,-2.5]]).appendPoint([2.5,2.5]).appendPoint([-2.5,2.5]).appendPoint([-2.5,-2.5]).close().innerToCAG()
.extrude({ offset: [0, 0, 5] });
}
@ -10,7 +10,7 @@ function square_outline_fn(){
// creating part 0 of case cube
let cube__part_0 = square_outline_fn();
let cube__part_0 = square_extrude_5_outline_fn();
// make sure that rotations are relative
let cube__part_0_bounds = cube__part_0.getBounds();