mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-01-17 06:08:31 +01:00
render first to avoid bugs
This commit is contained in:
parent
b5a142e4b5
commit
ae21c27cfe
@ -78,10 +78,16 @@ if(model == "Cube") {
|
||||
spiral_cube(leng, leng_diff, min_leng);
|
||||
} else if(model == "Base") {
|
||||
base(leng);
|
||||
} else {
|
||||
} else {
|
||||
translate([0, 0, leng * sqrt(3) / 2 + leng / 15])
|
||||
rotate([45, atan2(1, sqrt(2)), 0])
|
||||
rotate([45, atan2(1, sqrt(2)), 0])
|
||||
// render first to avoid bugs
|
||||
render() {
|
||||
spiral_cube(leng, leng_diff, min_leng);
|
||||
base(leng);
|
||||
rotate([-45, 0, 0])
|
||||
rotate([0, -atan2(1, sqrt(2)), 0])
|
||||
translate([0, 0, -(leng * sqrt(3) / 2 + leng / 15)])
|
||||
base(leng);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user