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

Method calculate_volume

src/ifcgeom/IfcGeomRepresentation.cpp:88–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88bool IfcGeom::Representation::BRep::calculate_volume(double& volume) const {
89 std::unique_ptr<ConversionResultShape> s(as_compound());
90 if (!s) {
91 volume = 0.;
92 return false;
93 }
94 volume = s->volume()->to_double();
95 return true;
96}
97
98bool IfcGeom::Representation::BRep::calculate_projected_surface_area(const ifcopenshell::geometry::taxonomy::matrix4::ptr& place, double& along_x, double& along_y, double& along_z) const {
99 along_x = along_y = along_z = 0.;

Callers 2

QuantityWriter_v1Method · 0.80
fix_quantitiesFunction · 0.80

Calls 1

volumeMethod · 0.45

Tested by

no test coverage detected