MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / getEdges

Method getEdges

src/Mod/Fem/App/FemMeshPyImp.cpp:1937–1953  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1935}
1936
1937Py::Tuple FemMeshPy::getEdges() const
1938{
1939 std::set<int> ids;
1940 SMDS_EdgeIteratorPtr aEdgeIter = getFemMeshPtr()->getSMesh()->GetMeshDS()->edgesIterator();
1941 while (aEdgeIter->more()) {
1942 const SMDS_MeshEdge* aEdge = aEdgeIter->next();
1943 ids.insert(aEdge->GetID());
1944 }
1945
1946 Py::Tuple tuple(ids.size());
1947 int index = 0;
1948 for (int it : ids) {
1949 tuple.setItem(index++, Py::Long(it));
1950 }
1951
1952 return tuple;
1953}
1954
1955Py::Tuple FemMeshPy::getEdgesOnly() const
1956{

Callers

nothing calls this directly

Calls 8

getSMeshMethod · 0.80
edgesIteratorMethod · 0.45
GetMeshDSMethod · 0.45
moreMethod · 0.45
nextMethod · 0.45
insertMethod · 0.45
GetIDMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected