Use num_halfedges instead of 2*num_edges

This commit is contained in:
Mael Rouxel-Labbé 2022-10-20 17:32:53 +02:00
parent 59f2021eaf
commit 141f05abd2
1 changed files with 1 additions and 3 deletions

View File

@ -883,12 +883,10 @@ private:
void compute_edge_weight()
{
m_edge_weight.clear();
m_edge_weight.reserve(2 * num_edges(m_tmesh));
m_edge_weight.reserve(num_halfedges(m_tmesh));
for(halfedge_descriptor hd : halfedges(m_tmesh))
{
m_edge_weight.push_back(m_weight_calculator(hd, m_tmesh, m_tmesh_point_pmap));
}
}
/// Assemble the left hand side.
void assemble_LHS(typename SolverTraits::Matrix& A)