From 30fce802a6b86b8520a301de9bc92be6547b3a27 Mon Sep 17 00:00:00 2001 From: logari81 Date: Sat, 3 Nov 2012 22:37:07 +0100 Subject: [PATCH] PartDesign: re-enable multiple profiles in Revolution and Groove --- src/Mod/PartDesign/App/FeatureGroove.cpp | 4 +--- src/Mod/PartDesign/App/FeatureRevolution.cpp | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Mod/PartDesign/App/FeatureGroove.cpp b/src/Mod/PartDesign/App/FeatureGroove.cpp index 05fb86975..763016932 100644 --- a/src/Mod/PartDesign/App/FeatureGroove.cpp +++ b/src/Mod/PartDesign/App/FeatureGroove.cpp @@ -133,9 +133,7 @@ App::DocumentObjectExecReturn *Groove::execute(void) gp_Dir dir(v.x,v.y,v.z); try { - // TopoDS::Face is not strictly necessary, but it will throw an exception for - // invalid wires e.g. intersections or multiple separate wires - TopoDS_Shape sketchshape = TopoDS::Face(makeFace(wires)); + TopoDS_Shape sketchshape = makeFace(wires); if (sketchshape.IsNull()) return new App::DocumentObjectExecReturn("Creating a face from sketch failed"); diff --git a/src/Mod/PartDesign/App/FeatureRevolution.cpp b/src/Mod/PartDesign/App/FeatureRevolution.cpp index ea6576d51..463c32970 100644 --- a/src/Mod/PartDesign/App/FeatureRevolution.cpp +++ b/src/Mod/PartDesign/App/FeatureRevolution.cpp @@ -139,9 +139,7 @@ App::DocumentObjectExecReturn *Revolution::execute(void) gp_Dir dir(v.x,v.y,v.z); try { - // TopoDS::Face is not strictly necessary, but it will throw an exception for - // invalid wires e.g. intersections or multiple separate wires - TopoDS_Shape sketchshape = TopoDS::Face(makeFace(wires)); + TopoDS_Shape sketchshape = makeFace(wires); if (sketchshape.IsNull()) return new App::DocumentObjectExecReturn("Creating a face from sketch failed");