When the first operand is hidden, some strange things happen, so this guards
against that.
Example:
include <BOSL2/std.scad>
part_to_show = "A"; // [A,B,C]
part_to_hide = "B"; // [A,B,C]
module my_part() {
tags("A") left(10) cuboid(10);
tags("B") diff("neg", "B") right(10) {
cuboid(10);
cyl(d=10, h=10, $tags="neg");
}
tags("C") fwd(10) cuboid(10);
}
show(part_to_show) hide(part_to_hide) my_part();
Tag "B" here acts very strangely when it is supposed to be hidden, and never
hides completely.
Eliminate double definitions.
Eliminate unneeded comments.
In common.scad redefine num_defined(), all_defined() and get_radius().
In geometry.scad:
- change name _dist to _dist2line
- simplify _point_above_below_segment() and triangle_area()
- change some arg names for uniformity (path>>poly)
- change point_in_polygon() to accept the Even-odd rule as alternative
- and other minor edits
Update tests_geometry to the new funcionalities.
Eliminate double definitions.
Eliminate unneeded comments.
In common.scad redefine num_defined(), all_defined() and get_radius().
In geometry.scad:
- change name _dist to _dist2line
- simplify _point_above_below_segment() and triangle_area()
- change some arg names for uniformity (path>>poly)
- change point_in_polygon() to accept the Even-odd rule as alternative
- and other minor edits
Update tests_geometry to the new funcionalities.
Eliminate double definitions.
Eliminate unneeded comments.
In common.scad redefine num_defined(), all_defined() and get_radius().
In geometry.scad:
- change name _dist to _dist2line
- simplify _point_above_below_segment() and triangle_area()
- change some arg names for uniformity (path>>poly)
- change point_in_polygon() to accept the Even-odd rule as alternative
- and other minor edits
Update tests_geometry to the new funcionalities.
Added attachment support to all modules, and bug fixed rounded_prism (problem introduced by error checking in det2), and fixed broken example in rounding.