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

Method update_face_sources

tools/Wires/Inflator/MeshRefiner.cpp:12–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10}
11
12VectorI MeshRefiner::update_face_sources(const VectorI& face_sources) const {
13 VectorI face_indices = m_refiner->get_face_indices();
14 const size_t num_faces = m_refiner->get_num_faces();
15 assert(face_indices.size() == num_faces);
16
17 VectorI result(num_faces);
18 for (size_t i=0; i<num_faces; i++) {
19 assert(face_indices[i] < face_sources.size());
20 result[i] = face_sources[face_indices[i]];
21 }
22 return result;
23}
24
25MatrixFr MeshRefiner::update_vertex_field(const MatrixFr& field) const {
26 const auto& subdiv_matrices = m_refiner->get_subdivision_matrices();

Callers

nothing calls this directly

Calls 3

get_face_indicesMethod · 0.45
get_num_facesMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected