+ Add CountEdges to Python interface of Mesh class

This commit is contained in:
wmayer 2014-04-01 17:27:33 +02:00
parent 37cc136310
commit 7b07bdfe10
2 changed files with 11 additions and 0 deletions

View File

@ -423,6 +423,12 @@ for p in mesh.Points:
</Documentation>
<Parameter Name="CountPoints" Type="Int" />
</Attribute>
<Attribute Name="CountEdges" ReadOnly="true">
<Documentation>
<UserDocu>Return the number of edges of the mesh object.</UserDocu>
</Documentation>
<Parameter Name="CountEdges" Type="Int" />
</Attribute>
<Attribute Name="Facets" ReadOnly="true">
<Documentation>
<UserDocu>A collection of facets

View File

@ -1498,6 +1498,11 @@ Py::Int MeshPy::getCountPoints(void) const
return Py::Int((long)getMeshObjectPtr()->countPoints());
}
Py::Int MeshPy::getCountEdges(void) const
{
return Py::Int((long)getMeshObjectPtr()->countEdges());
}
Py::Int MeshPy::getCountFacets(void) const
{
return Py::Int((long)getMeshObjectPtr()->countFacets());