Skip to content

Commit

Permalink
fix edgemesh collapse ve update
Browse files Browse the repository at this point in the history
  • Loading branch information
JcDai committed Oct 23, 2024
1 parent 7385f1e commit d01f46c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/wmtk/EdgeMeshOperationExecutor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,8 @@ Tuple EdgeMesh::EdgeMeshOperationExecutor::collapse_edge_single_mesh()

// update ve
{
ve_accessor.index_access().scalar_attribute(m_spine_vids[1]) = m_neighbor_eids[1];
ve_accessor.index_access().scalar_attribute(m_spine_vids[1]) =
(m_neighbor_eids[1] != -1) ? m_neighbor_eids[1] : m_neighbor_eids[0];
}

update_cell_hash();
Expand Down

0 comments on commit d01f46c

Please sign in to comment.