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

Method initialize_face_voronoi_areas

tools/Wires/Parameters/ParameterDerivative.cpp:50–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50void ParameterDerivative::initialize_face_voronoi_areas() {
51 VectorF face_voronoi_area = m_mesh->get_attribute("face_voronoi_area");
52 m_face_voronoi_areas.resize(m_mesh->get_num_faces(),
53 m_mesh->get_vertex_per_face());
54 std::copy(face_voronoi_area.data(),
55 face_voronoi_area.data() + face_voronoi_area.size(),
56 m_face_voronoi_areas.data());
57}
58

Callers

nothing calls this directly

Calls 4

get_attributeMethod · 0.45
get_num_facesMethod · 0.45
get_vertex_per_faceMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected