From 7b07bdfe10671b9eceedeccc84c54b5ce49dd3ba Mon Sep 17 00:00:00 2001 From: wmayer Date: Tue, 1 Apr 2014 17:27:33 +0200 Subject: [PATCH] + Add CountEdges to Python interface of Mesh class --- src/Mod/Mesh/App/MeshPy.xml | 6 ++++++ src/Mod/Mesh/App/MeshPyImp.cpp | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/src/Mod/Mesh/App/MeshPy.xml b/src/Mod/Mesh/App/MeshPy.xml index d8dc7c78e3..789270f08b 100644 --- a/src/Mod/Mesh/App/MeshPy.xml +++ b/src/Mod/Mesh/App/MeshPy.xml @@ -423,6 +423,12 @@ for p in mesh.Points: + + + Return the number of edges of the mesh object. + + + A collection of facets diff --git a/src/Mod/Mesh/App/MeshPyImp.cpp b/src/Mod/Mesh/App/MeshPyImp.cpp index 8b745b4ff3..e10eea3f48 100644 --- a/src/Mod/Mesh/App/MeshPyImp.cpp +++ b/src/Mod/Mesh/App/MeshPyImp.cpp @@ -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());