0001207: Expose Standard_Boolean TopoDS_Shape::IsPartner(const TopoDS_Shape& other) const; to python
This commit is contained in:
parent
8e928dc265
commit
1ede6a3b93
|
@ -222,14 +222,25 @@ As a result, this shape becomes null.</UserDocu>
|
|||
<UserDocu>Checks if the shape is closed.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="isPartner" Const="true">
|
||||
<Documentation>
|
||||
<UserDocu>Checks if both shapes share the same geometry.
|
||||
Placement and orientation may differ.
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="isSame" Const="true">
|
||||
<Documentation>
|
||||
<UserDocu>Checks if both shapes share the same geometry.</UserDocu>
|
||||
<UserDocu>Checks if both shapes share the same geometry
|
||||
and placement. Orientation may differ.
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="isEqual" Const="true">
|
||||
<Documentation>
|
||||
<UserDocu>Checks if both shapes are equal.</UserDocu>
|
||||
<UserDocu>Checks if both shapes are equal.
|
||||
This means geometry, placement and orientation are equal.
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="isNull" Const="true">
|
||||
|
|
|
@ -1142,7 +1142,7 @@ PyObject* TopoShapePy::isEqual(PyObject *args)
|
|||
return NULL;
|
||||
|
||||
TopoDS_Shape shape = static_cast<TopoShapePy*>(pcObj)->getTopoShapePtr()->_Shape;
|
||||
Standard_Boolean test = (getTopoShapePtr()->_Shape == shape);
|
||||
Standard_Boolean test = (getTopoShapePtr()->_Shape.IsEqual(shape));
|
||||
return Py_BuildValue("O", (test ? Py_True : Py_False));
|
||||
}
|
||||
|
||||
|
@ -1157,6 +1157,17 @@ PyObject* TopoShapePy::isSame(PyObject *args)
|
|||
return Py_BuildValue("O", (test ? Py_True : Py_False));
|
||||
}
|
||||
|
||||
PyObject* TopoShapePy::isPartner(PyObject *args)
|
||||
{
|
||||
PyObject *pcObj;
|
||||
if (!PyArg_ParseTuple(args, "O!", &(TopoShapePy::Type), &pcObj))
|
||||
return NULL;
|
||||
|
||||
TopoDS_Shape shape = static_cast<TopoShapePy*>(pcObj)->getTopoShapePtr()->_Shape;
|
||||
Standard_Boolean test = getTopoShapePtr()->_Shape.IsPartner(shape);
|
||||
return Py_BuildValue("O", (test ? Py_True : Py_False));
|
||||
}
|
||||
|
||||
PyObject* TopoShapePy::isValid(PyObject *args)
|
||||
{
|
||||
if (!PyArg_ParseTuple(args, ""))
|
||||
|
|
Loading…
Reference in New Issue
Block a user