remove ambiguous function setTolerance, use Tolerance attribute instead
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user