From 16663d4db3765e1d1567e7df87db05b6a28ddc42 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Thu, 8 Oct 2020 16:50:05 +0200 Subject: [PATCH] Swept disk revolution processing on face instead of wire --- src/ifcgeom/IfcGeomShapes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcgeom/IfcGeomShapes.cpp b/src/ifcgeom/IfcGeomShapes.cpp index 8460f9aec4..d4aed9d155 100644 --- a/src/ifcgeom/IfcGeomShapes.cpp +++ b/src/ifcgeom/IfcGeomShapes.cpp @@ -1227,7 +1227,7 @@ namespace { // @todo we could be extruding the wire only when we know this is an intermediate edge. const double depth = std::abs(u - v); TopoDS_Face face = BRepBuilderAPI_MakeFace(section).Face(); - result = BRepPrimAPI_MakeRevol(section, circ->Axis(), depth).Shape(); + result = BRepPrimAPI_MakeRevol(face, circ->Axis(), depth).Shape(); } void process_sweep_as_pipe(const TopoDS_Wire& wire, const TopoDS_Wire& section, TopoDS_Shape& result, bool force_transformed=false) {