| 86 | } |
| 87 | |
| 88 | bool 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 | |
| 98 | bool 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.; |
no test coverage detected