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

Method init_boundary_lengths

tools/Assembler/Mesh/TriangleMesh.cpp:255–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253}
254
255void TriangleMesh::init_boundary_lengths() {
256 const size_t num_edges = m_boundary_edges.rows();
257 m_boundary_lengths.resize(num_edges);
258 for (size_t i=0; i<num_edges; i++) {
259 const VectorI& edge = m_boundary_edges.row(i);
260 assert(2 == edge.size());
261 VectorF v0 = m_mesh->get_vertex(edge[0]);
262 VectorF v1 = m_mesh->get_vertex(edge[1]);
263 m_boundary_lengths[i] = (v0 - v1).norm();
264 }
265}
266
267void TriangleMesh::init_boundary_normals(const BoundaryPtr& bd) {
268 const size_t dim = m_mesh->get_dim();

Callers

nothing calls this directly

Calls 3

normMethod · 0.80
sizeMethod · 0.45
get_vertexMethod · 0.45

Tested by

no test coverage detected