1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-08-12 02:13:57 +02:00

Restored explode lines to yellow.

Now keeps track of STL bounds and uses them to force a large assembly view when large.
This commit is contained in:
Chris Palmer
2019-06-11 12:38:00 +01:00
parent 00c6914e23
commit 85e1985f1a
17 changed files with 70 additions and 31 deletions

View File

@@ -34,9 +34,9 @@ module no_pose() let($posed = true) children(); //! Force ch
module explode(d, explode_children = false, offset = [0,0,0]) { //! Explode children by specified Z distance or vector ```d```, option to explode grand children
v = is_list(d) ? d : [0, 0, d];
o = is_list(offset) ? offset : [0, 0, offset];
if($exploded && is_undef($exploded_parent)) {
if($exploded && is_undef($exploded_parent) && norm(v)) {
translate(o) // Draw the line first in case the child is transparent
hull() {
color("yellow") hull() {
sphere(0.2);
translate(v * $exploded)