Skip to content

Commit

Permalink
Merge pull request #823 from wildmeshing/jiacheng/edgemesh_bug_fix
Browse files Browse the repository at this point in the history
fix edgemesh bug(s)
  • Loading branch information
mtao authored Oct 23, 2024
2 parents 7385f1e + d01f46c commit 31aca16
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 31aca16

Please sign in to comment.