mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-19 11:43:53 +00:00
Auto mem mngt in conversion result number types; more arithmetic on OpaqueCoordinate
This commit is contained in:
@@ -81,7 +81,7 @@ bool IfcGeom::Representation::BRep::calculate_surface_area(double& area) const {
|
||||
area = 0.;
|
||||
return false;
|
||||
}
|
||||
area = s->area()->to_double();
|
||||
area = s->area().to_double();
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -91,7 +91,7 @@ bool IfcGeom::Representation::BRep::calculate_volume(double& volume) const {
|
||||
volume = 0.;
|
||||
return false;
|
||||
}
|
||||
volume = s->volume()->to_double();
|
||||
volume = s->volume().to_double();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user