+ attribute Tolerance added to vertex, edge and face

+ method 'add' added to wire

git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5401 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
This commit is contained in:
wmayer
2012-01-12 12:09:45 +00:00
parent db3e0cad43
commit 7feebeb5a2
9 changed files with 113 additions and 16 deletions

View File

@@ -1679,13 +1679,10 @@ TopoDS_Shape TopoShape::removeShape(const std::vector<TopoDS_Shape>& s) const
void TopoShape::sewShape()
{
//ShapeFix_Shape fixer(this->_Shape);
//fixer.Perform();
BRepBuilderAPI_Sewing sew;
sew.Load(this->_Shape/*fixer.Shape()*/);
sew.Load(this->_Shape);
sew.Perform();
//shape = ShapeUpgrade_ShellSewing().ApplySewing(shape);
this->_Shape = sew.SewedShape();
}
@@ -1722,6 +1719,10 @@ bool TopoShape::fix(double precision, double mintol, double maxtol)
fix.FixFaceTool()->Perform();
this->_Shape = fix.Shape();
}
else if (type == TopAbs_WIRE) {
fix.FixWireTool()->Perform();
this->_Shape = fix.Shape();
}
else {
this->_Shape = fix.Shape();
}