Skip to content

Commit

Permalink
+ Add CountEdges to Python interface of Mesh class
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Apr 1, 2014
1 parent 37cc136 commit 7b07bdf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Mod/Mesh/App/MeshPy.xml
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions src/Mod/Mesh/App/MeshPyImp.cpp
Expand Up @@ -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());
Expand Down

0 comments on commit 7b07bdf

Please sign in to comment.