Skip to content

Commit

Permalink
fix Triangle Mesh bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaming32 committed Mar 2, 2021
1 parent 39aa359 commit 7007574
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/visuals/Mesh.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ public static int getTrianglesPerRow(int length, int trianglesPerColumn) {

@Override
public void drawVisual(int[] array, ArrayVisualizer ArrayVisualizer, Renderer Renderer, Highlights Highlights) {
if (Renderer.auxActive)
return;

int trih = getTriangleHeight(ArrayVisualizer.getCurrentLength(), ArrayVisualizer.windowHeight() / 20); //Height of triangles to use, Width will be scaled accordingly

int tripercol = (ArrayVisualizer.windowHeight() / trih) * 2; //Triangles per column
Expand Down

0 comments on commit 7007574

Please sign in to comment.