| 40 | } |
| 41 | |
| 42 | void OpenCascadeBasedSerializer::write(const IfcGeom::BRepElement* o) { |
| 43 | auto itm = o->geometry().as_compound(); |
| 44 | TopoDS_Shape compound = ((ifcopenshell::geometry::OpenCascadeShape*)itm)->shape(); |
| 45 | writeShape(object_id(o), compound); |
| 46 | delete itm; |
| 47 | } |
| 48 | |
| 49 | #define RATHER_SMALL (1e-3) |
| 50 | #define APPROXIMATELY_THE_SAME(a,b) (fabs(a-b) < RATHER_SMALL) |
nothing calls this directly
no test coverage detected