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

Method calculate_surface_area

src/ifcgeom/IfcGeomRepresentation.cpp:78–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78bool IfcGeom::Representation::BRep::calculate_surface_area(double& area) const {
79 std::unique_ptr<ConversionResultShape> s(as_compound());
80 if (!s) {
81 area = 0.;
82 return false;
83 }
84 area = s->area()->to_double();
85 return true;
86}
87
88bool IfcGeom::Representation::BRep::calculate_volume(double& volume) const {
89 std::unique_ptr<ConversionResultShape> s(as_compound());

Callers 2

QuantityWriter_v1Method · 0.80
fix_quantitiesFunction · 0.80

Calls 1

areaMethod · 0.45

Tested by

no test coverage detected