fixes #0001302: crash in model refine.

This commit is contained in:
wmayer 2013-12-01 11:44:50 +01:00
parent 09fe84abbf
commit 1464cf413b

View File

@ -371,7 +371,10 @@ TopoDS_Face FaceTypedPlane::buildFace(const FaceVectorType &faces) const
std::sort(wires.begin(), wires.end(), ModelRefine::WireSort());
TopoDS_Face current = BRepLib_MakeFace(wires.at(0), Standard_True);
BRepLib_MakeFace faceMaker(wires.at(0), Standard_True);
if (faceMaker.Error() != BRepLib_FaceDone)
return TopoDS_Face();
TopoDS_Face current = faceMaker.Face();
if (wires.size() > 1)
{
ShapeFix_Face faceFix(current);