+ check if creation of face was successful

git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5292 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
This commit is contained in:
wmayer 2011-12-13 10:30:51 +00:00
parent 7b724d7137
commit d5d74e140e

View File

@ -511,9 +511,10 @@ TopoDS_Face FaceTypedPlane::buildFace(const FaceVectorType &faces) const
faceFix.Add(wiresParallel.at(index));
}
faceFix.FixOrientation();
faceFix.Perform();
if (faceFix.Perform())
return faceFix.Face();
else
return TopoDS_Face();
}
FaceTypedPlane& ModelRefine::getPlaneObject()