PartDesign: re-enable multiple profiles in Revolution and Groove
This commit is contained in:
parent
1e38a6d606
commit
30fce802a6
|
@ -133,9 +133,7 @@ App::DocumentObjectExecReturn *Groove::execute(void)
|
||||||
gp_Dir dir(v.x,v.y,v.z);
|
gp_Dir dir(v.x,v.y,v.z);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// TopoDS::Face is not strictly necessary, but it will throw an exception for
|
TopoDS_Shape sketchshape = makeFace(wires);
|
||||||
// invalid wires e.g. intersections or multiple separate wires
|
|
||||||
TopoDS_Shape sketchshape = TopoDS::Face(makeFace(wires));
|
|
||||||
if (sketchshape.IsNull())
|
if (sketchshape.IsNull())
|
||||||
return new App::DocumentObjectExecReturn("Creating a face from sketch failed");
|
return new App::DocumentObjectExecReturn("Creating a face from sketch failed");
|
||||||
|
|
||||||
|
|
|
@ -139,9 +139,7 @@ App::DocumentObjectExecReturn *Revolution::execute(void)
|
||||||
gp_Dir dir(v.x,v.y,v.z);
|
gp_Dir dir(v.x,v.y,v.z);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// TopoDS::Face is not strictly necessary, but it will throw an exception for
|
TopoDS_Shape sketchshape = makeFace(wires);
|
||||||
// invalid wires e.g. intersections or multiple separate wires
|
|
||||||
TopoDS_Shape sketchshape = TopoDS::Face(makeFace(wires));
|
|
||||||
if (sketchshape.IsNull())
|
if (sketchshape.IsNull())
|
||||||
return new App::DocumentObjectExecReturn("Creating a face from sketch failed");
|
return new App::DocumentObjectExecReturn("Creating a face from sketch failed");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user