MCPcopy Create free account
hub / github.com/NGSolve/ngsolve / MeshNode

Class MeshNode

comp/python_comp_mesh.cpp:179–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177 ;
178
179 class MeshNode : public NodeId
180 {
181 const MeshAccess & ma;
182 public:
183 MeshNode (NodeId _ni, const MeshAccess & _ma)
184 : NodeId(_ni), ma(_ma) { ; }
185 auto & Mesh() { return ma; }
186 MeshNode operator++ (int) { return MeshNode(NodeId::operator++(0),ma); }
187 MeshNode operator++ () { return MeshNode(NodeId::operator++(), ma); }
188 MeshNode operator+ (size_t i) { return MeshNode(NodeId::operator+(i), ma); }
189 };
190
191 py::class_<MeshNode, NodeId> (m, "MeshNode", "a node within a mesh")
192 .def_property_readonly("vertices", [](MeshNode & node) -> py::tuple

Callers 3

operator++Method · 0.85
operator+Method · 0.85
ExportNgcompMeshFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected