MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / init_attributes

Method init_attributes

tools/Assembler/Mesh/TetrahedronMesh.cpp:177–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177void TetrahedronMesh::init_attributes() {
178 if (!m_mesh->has_attribute("vertex_normal")) {
179 throw RuntimeError("\"vertex_normal\" is not computed in mesh");
180 }
181 if (!m_mesh->has_attribute("voxel_volume")) {
182 throw RuntimeError("\"voxel_volume\" is not computed in mesh");
183 }
184}
185
186void TetrahedronMesh::init_boundary_nodes() {
187 const size_t dim = getDim();

Callers

nothing calls this directly

Calls 2

RuntimeErrorClass · 0.85
has_attributeMethod · 0.45

Tested by

no test coverage detected