Skip to content

Commit

Permalink
Merge pull request #521 from saalfeldlab/fix/MeshWork
Browse files Browse the repository at this point in the history
fix: when overlap toggled off, mesh faces at the end of the volume ar…
  • Loading branch information
cmhulbert authored Dec 15, 2023
2 parents 50ac3ae + ec5e789 commit 2477353
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ public Mesh(final float[] flatTrianglesAndVertices, final Interval interval, fin
final ArrayList<TIntArrayList> trianglesPerVertex = new ArrayList<>();
final TIntArrayList triangleVertexIndices = new TIntArrayList();

final double minY = interval.min(1) - 1;
final double minX = interval.min(0) - 1;
final double minY = interval.min(1) - 1;
final double minZ = interval.min(2) - 1;

final int overlapOffset = overlap ? 1 : 0;
final double overlapOffset = overlap ? 1 : .5;
final double maxX = interval.max(0) + overlapOffset;
final double maxY = interval.max(1) + overlapOffset;
final double maxZ = interval.max(2) + overlapOffset;
Expand Down

0 comments on commit 2477353

Please sign in to comment.