Skip to content

Commit

Permalink
Merge pull request #16 from aleung/fix_13
Browse files Browse the repository at this point in the history
Fix #13: change differed() positive default
  • Loading branch information
davidson16807 authored Apr 19, 2019
2 parents 226d618 + ee38274 commit 32f314b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions relativity.scad
Original file line number Diff line number Diff line change
Expand Up @@ -824,9 +824,10 @@ module hulled(class="*"){

// performs the union on objects marked as positive space (i.e. objects where $class = positive),
// and performs the difference for objects marked as negative space (i.e objects where $class = $negative)
module differed(negative, positive="*", unaffected=undef){
_positive = _sizzle_parse(positive);
module differed(negative, positive=undef, unaffected=undef){
_negative = _sizzle_parse(negative);
_positive = positive != undef?
_sizzle_parse(positive) : ["not", _negative];
_unaffected = unaffected != undef?
_sizzle_parse(unaffected) : ["not", ["or", _positive, _negative]];

Expand Down

0 comments on commit 32f314b

Please sign in to comment.