Fix invalid IfcRevolvedAreaSolid representations with angle <360 deg

It was always assuming angle is 360 deg
This commit is contained in:
Andrej730
2024-09-26 17:47:01 +05:00
parent ca5f083481
commit 7d8ef3ffd0
@@ -405,7 +405,12 @@ bool IfcGeom::OpenCascadeKernel::convert_impl(const taxonomy::revolve::ptr r, If
return false;
}
TopoDS_Shape shape = BRepPrimAPI_MakeRevol(face, ax);
TopoDS_Shape shape;
if (r->angle) {
shape = BRepPrimAPI_MakeRevol(face, ax, *r->angle);
} else {
shape = BRepPrimAPI_MakeRevol(face, ax);
}
results.emplace_back(ConversionResult(
r->instance->as<IfcUtil::IfcBaseEntity>()->id(),