Part, PartDesign, Attacher: fix a few problems with infinite shapes

To throw an error instead of returning a semi-infinite result that kills rendering.
fixes #3439
This commit is contained in:
DeepSOIC
2018-09-11 23:52:45 +03:00
committed by wmayer
parent d91765a79c
commit e7485effb4
3 changed files with 16 additions and 7 deletions

View File

@@ -60,7 +60,9 @@ Plane::Plane()
BRepBuilderAPI_MakeFace builder(gp_Pln(gp_Pnt(0,0,0), gp_Dir(0,0,1)));
if (!builder.IsDone())
return;
Shape.setValue(builder.Shape());
TopoDS_Shape myShape = builder.Shape();
myShape.Infinite(Standard_True);
Shape.setValue(myShape);
}
Plane::~Plane()