Geometry in which group after boolean subtract??
-
If you have two groups and do a boolean subtract on one to the other then what group does the resulting geometry end up in??
so for example....
result = group2.subtract(group1)
The group isn't called 'result' because if I do 'result.class' I get 'NilClass' and neither is it called group1 or group2 (original groups) because if I type these in I get a reference to a deleted entity - #<Deleted Entity:0x7fd36ac90d70>. So how do I get a reference to this new resultant group??Thanks
Matt -
**my own stupidity - the subtract was done within a defined method so just couldn't access it outside it..
putting @ in front solved it... @result
-
Also, if the
subtract
statement is the last one evaluated in the method, it's result will be the return object from the method itself.Otherwise you can insert a statement like:
return result
as the last statement.
Advertisement