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

Method compute_from_mesh

src/Attributes/VertexIndexAttribute.cpp:8–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6using namespace PyMesh;
7
8void VertexIndexAttribute::compute_from_mesh(Mesh& mesh) {
9 const size_t num_vertices = mesh.get_num_vertices();
10 VectorF& indices = m_values;
11 indices = VectorF::LinSpaced(num_vertices, 0, num_vertices-1);
12}

Callers

nothing calls this directly

Calls 1

get_num_verticesMethod · 0.45

Tested by

no test coverage detected