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

Method get_vertices

tools/MeshUtils/ShortEdgeRemoval.cpp:42–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42MatrixFr ShortEdgeRemoval::get_vertices() const {
43 const size_t dim = get_dim();
44 const size_t num_vertices = get_num_vertices();
45 const size_t num_ori_vertices = m_vertices.rows();
46 const size_t num_new_vertices = m_new_vertices.size();
47 MatrixFr vertices(num_vertices, dim);
48 std::copy(m_vertices.data(), m_vertices.data() + m_vertices.size(),
49 vertices.data());
50 for (size_t i=0; i<num_new_vertices; i++) {
51 vertices.row(num_ori_vertices + i) = m_new_vertices[i];
52 }
53 return vertices;
54}
55
56void ShortEdgeRemoval::init() {
57 init_vertex_map();

Callers 9

__collapse_CMethod · 0.95
createMethod · 0.45
clean_up_selectedMethod · 0.45
clean_up_unselectedMethod · 0.45
cut_with_face_labelsMethod · 0.45
cut_along_edgesMethod · 0.45
remove_zero_edgesMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected