| 49 | |
| 50 | namespace { |
| 51 | BOPAlgo_Operation op_to_occt(taxonomy::boolean_result::operation_t t) { |
| 52 | switch (t) { |
| 53 | case taxonomy::boolean_result::UNION: return BOPAlgo_FUSE; |
| 54 | case taxonomy::boolean_result::INTERSECTION: return BOPAlgo_COMMON; |
| 55 | case taxonomy::boolean_result::SUBTRACTION: return BOPAlgo_CUT; |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | bool get_single_child(const TopoDS_Shape& s, TopoDS_Shape& child) { |
| 60 | TopoDS_Iterator it(s); |