MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / write

Method write

src/serializers/OpenCascadeBasedSerializer.cpp:42–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42void 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)

Callers

nothing calls this directly

Calls 2

object_idFunction · 0.85
as_compoundMethod · 0.80

Tested by

no test coverage detected