From ac8f69bc0824f6887cb64e8f6da3d17f9868bc94 Mon Sep 17 00:00:00 2001 From: wmayer Date: Sat, 7 Dec 2013 12:54:38 +0100 Subject: [PATCH] + Apply fix of correct use of ShapeFix_Face --- src/Mod/Part/App/modelRefine.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/Mod/Part/App/modelRefine.cpp b/src/Mod/Part/App/modelRefine.cpp index eddb23025..046ab4bf0 100644 --- a/src/Mod/Part/App/modelRefine.cpp +++ b/src/Mod/Part/App/modelRefine.cpp @@ -381,12 +381,12 @@ TopoDS_Face FaceTypedPlane::buildFace(const FaceVectorType &faces) const faceFix.SetContext(new ShapeBuild_ReShape()); for (size_t index(1); index ShapeExtend_DONE) + faceFix.Perform(); + if (faceFix.Status(ShapeExtend_FAIL)) return TopoDS_Face(); faceFix.FixOrientation(); - signal = faceFix.Perform(); - if (signal > ShapeExtend_DONE) + faceFix.Perform(); + if(faceFix.Status(ShapeExtend_FAIL)) return TopoDS_Face(); current = faceFix.Face(); } @@ -472,10 +472,12 @@ TopoDS_Face FaceTypedCylinder::buildFace(const FaceVectorType &faces) const //fix newly constructed face. Orientation doesn't seem to get fixed the first call. ShapeFix_Face faceFixer(faceMaker.Face()); faceFixer.SetContext(new ShapeBuild_ReShape()); - if (faceFixer.Perform() > ShapeExtend_DONE5) + faceFixer.Perform(); + if (faceFixer.Status(ShapeExtend_FAIL)) return dummy; faceFixer.FixOrientation(); - if (faceFixer.Perform() > ShapeExtend_DONE5) + faceFixer.Perform(); + if (faceFixer.Status(ShapeExtend_FAIL)) return dummy; return faceFixer.Face();