mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 18:21:59 +00:00
Fix previous commit
This commit is contained in:
@@ -443,7 +443,7 @@ public:
|
|||||||
|
|
||||||
for (auto& part : elem->geometry()) {
|
for (auto& part : elem->geometry()) {
|
||||||
TopExp_Explorer exp(part.Shape(), TopAbs_FACE);
|
TopExp_Explorer exp(part.Shape(), TopAbs_FACE);
|
||||||
while (exp.More()) {
|
for (; exp.More(); exp.Next()) {
|
||||||
GProp_GProps prop;
|
GProp_GProps prop;
|
||||||
BRepGProp::SurfaceProperties(exp.Current(), prop);
|
BRepGProp::SurfaceProperties(exp.Current(), prop);
|
||||||
const double area = prop.Mass();
|
const double area = prop.Mass();
|
||||||
|
|||||||
Reference in New Issue
Block a user