From c11cf35f2ad91530b04bf8cfca6d62e9f2add1d5 Mon Sep 17 00:00:00 2001 From: wmayer Date: Thu, 12 Apr 2012 19:11:09 +0200 Subject: [PATCH] 0000649: Creating a ruled surface fails --- src/Mod/Part/App/PartFeatures.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Mod/Part/App/PartFeatures.cpp b/src/Mod/Part/App/PartFeatures.cpp index 3bc5c06836..9f1512b26a 100644 --- a/src/Mod/Part/App/PartFeatures.cpp +++ b/src/Mod/Part/App/PartFeatures.cpp @@ -78,6 +78,8 @@ App::DocumentObjectExecReturn *RuledSurface::execute(void) if (!shape1._Shape.IsNull()) { if (shape1._Shape.ShapeType() == TopAbs_EDGE) curve1 = shape1._Shape; + else if (shape1._Shape.ShapeType() == TopAbs_WIRE) + curve1 = shape1._Shape; else curve1 = shape1.getSubShape(element1[0].c_str()); } @@ -87,6 +89,8 @@ App::DocumentObjectExecReturn *RuledSurface::execute(void) if (!shape2._Shape.IsNull()) { if (shape2._Shape.ShapeType() == TopAbs_EDGE) curve2 = shape2._Shape; + else if (shape2._Shape.ShapeType() == TopAbs_WIRE) + curve2 = shape2._Shape; else curve2 = shape2.getSubShape(element2[0].c_str()); }