Skip to content

Commit

Permalink
+ Apply fix of correct use of ShapeFix_Face
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Dec 7, 2013
1 parent 9be9233 commit ac8f69b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/Mod/Part/App/modelRefine.cpp
Expand Up @@ -381,12 +381,12 @@ TopoDS_Face FaceTypedPlane::buildFace(const FaceVectorType &faces) const
faceFix.SetContext(new ShapeBuild_ReShape());
for (size_t index(1); index<wires.size(); ++index)
faceFix.Add(wires.at(index));
Standard_Boolean signal = faceFix.Perform();
if (signal > 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();
}
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit ac8f69b

Please sign in to comment.