mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
Fix invalid IfcRevolvedAreaSolid representations with angle <360 deg
It was always assuming angle is 360 deg
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user