remove ambiguous function setTolerance, use Tolerance attribute instead

This commit is contained in:
wmayer
2018-08-19 14:31:04 +02:00
parent 3ffd435526
commit 07eea2e3a6
6 changed files with 1 additions and 50 deletions

View File

@@ -298,11 +298,6 @@ Returns:
<UserDocu>Vector = centerOfCurvatureAt(float pos) - Get the center of curvature at the given parameter [First|Last] if defined</UserDocu>
</Documentation>
</Methode>
<Methode Name="setTolerance">
<Documentation>
<UserDocu>Set the tolerance for the edge.</UserDocu>
</Documentation>
</Methode>
<Methode Name="firstVertex">
<Documentation>
<UserDocu>Vertex = firstVertex(Orientation=False)

View File

@@ -726,17 +726,6 @@ PyObject* TopoShapeEdgePy::isSeam(PyObject *args)
}
}
PyObject* TopoShapeEdgePy::setTolerance(PyObject *args)
{
double tol;
if (!PyArg_ParseTuple(args, "d", &tol))
return 0;
BRep_Builder aBuilder;
const TopoDS_Edge& e = TopoDS::Edge(getTopoShapePtr()->getShape());
aBuilder.UpdateEdge(e, tol);
Py_Return;
}
PyObject* TopoShapeEdgePy::firstVertex(PyObject *args)
{
PyObject* orient = Py_False;

View File

@@ -84,11 +84,6 @@ of curve and and parameter range is returned.
</UserDocu>
</Documentation>
</Methode>
<Methode Name="setTolerance">
<Documentation>
<UserDocu>Set the tolerance for the face.</UserDocu>
</Documentation>
</Methode>
<Attribute Name="Tolerance">
<Documentation>
<UserDocu>Set or get the tolerance of the vertex</UserDocu>

View File

@@ -813,17 +813,6 @@ Py::Object TopoShapeFacePy::getSurface() const
throw Py::TypeError("undefined surface type");
}
PyObject* TopoShapeFacePy::setTolerance(PyObject *args)
{
double tol;
if (!PyArg_ParseTuple(args, "d", &tol))
return 0;
BRep_Builder aBuilder;
const TopoDS_Face& f = TopoDS::Face(getTopoShapePtr()->getShape());
aBuilder.UpdateFace(f, tol);
Py_Return;
}
Py::Float TopoShapeFacePy::getTolerance(void) const
{
const TopoDS_Face& f = TopoDS::Face(getTopoShapePtr()->getShape());

View File

@@ -44,11 +44,5 @@
</Documentation>
<Parameter Name="Tolerance" Type="Float"/>
</Attribute>
<Methode Name="setTolerance">
<Documentation>
<UserDocu>Set the tolerance for the vertex.</UserDocu>
</Documentation>
</Methode>
</PythonExport>
</GenerateModel>
</GenerateModel>

View File

@@ -133,17 +133,6 @@ int TopoShapeVertexPy::PyInit(PyObject* args, PyObject* /*kwd*/)
return 0;
}
PyObject* TopoShapeVertexPy::setTolerance(PyObject *args)
{
double tol;
if (!PyArg_ParseTuple(args, "d", &tol))
return 0;
BRep_Builder aBuilder;
const TopoDS_Vertex& v = TopoDS::Vertex(getTopoShapePtr()->getShape());
aBuilder.UpdateVertex(v, tol);
Py_Return;
}
Py::Float TopoShapeVertexPy::getTolerance(void) const
{
const TopoDS_Vertex& v = TopoDS::Vertex(getTopoShapePtr()->getShape());