mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-09 21:53:40 +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;
|
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(
|
results.emplace_back(ConversionResult(
|
||||||
r->instance->as<IfcUtil::IfcBaseEntity>()->id(),
|
r->instance->as<IfcUtil::IfcBaseEntity>()->id(),
|
||||||
|
|||||||
Reference in New Issue
Block a user