1 |
%{ |
%{ /* -*- c++ -*- */ |
|
/* -*- c++ -*- */ |
|
2 |
|
|
3 |
/* |
/* |
4 |
* This file is part of ff3d - http://www.freefem.org/ff3d |
* This file is part of ff3d - http://www.freefem.org/ff3d |
628 |
if ($<trans.ref>5[3] == 0) { // means the object is not transparent |
if ($<trans.ref>5[3] == 0) { // means the object is not transparent |
629 |
BoolOp = BoolOpStack.top(); // revert to previous context |
BoolOp = BoolOpStack.top(); // revert to previous context |
630 |
BoolOpStack.pop(); |
BoolOpStack.pop(); |
631 |
Difference* d = new Difference(OpStack.top()[0]); // There will be at least |
Difference* d = new Difference(); |
632 |
// One object in Union |
|
633 |
for (size_t i=1; i<OpStack.top().size(); i++) |
for (size_t i=0; i<OpStack.top().size(); i++) { |
634 |
(*d).AddObject(OpStack.top()[i]); |
(*d).push_back(new Object(OpStack.top()[i])); |
635 |
|
} |
636 |
OpStack.pop(); |
OpStack.pop(); |
637 |
|
|
638 |
parsetrans& transformations = $5; |
parsetrans& transformations = $5; |