Skip to content

Commit

Permalink
perf: faster face id calculation for 6 connected
Browse files Browse the repository at this point in the history
  • Loading branch information
william-silversmith committed Nov 6, 2024
1 parent ec851a8 commit aea9116
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions zmesh/utility.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -856,21 +856,18 @@ void fix_single_outlier_6_connected(
MeshObject& m3 = mesh_grid[z3];

m1.add_point(i13);

const unsigned int m1f13 = m1.last_face();

m1.add_point(i23);

const unsigned int m1f23 = m1.last_face();

const unsigned int m1f23 = m1f13 + 1;

m3.add_point(i13);

const unsigned int m3f13 = m3.last_face();

m3.add_point(i23);

const unsigned int m3f23 = m3.last_face();
const unsigned int m3f23 = m3f13 + 1;

if (ordering & 1) { // 1 or 3
m1.add_triangle(face_remap[f1], m1f23, m1f13);
Expand Down

0 comments on commit aea9116

Please sign in to comment.