0000649: Creating a ruled surface fails

This commit is contained in:
wmayer 2012-04-12 19:11:09 +02:00
parent 9ea269be1c
commit c11cf35f2a

View File

@ -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());
}