Skip to content

Commit

Permalink
Fixed issue #1091.
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsschmidt1337 committed Jul 28, 2024
1 parent 4617405 commit f012287
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/org/nschmidt/ldparteditor/data/GData4.java
Original file line number Diff line number Diff line change
Expand Up @@ -1266,7 +1266,7 @@ public void drawGL20CoplanarityHeatmap(Composite3D c3d) {
calculateAngle();
double delta = Threshold.coplanarityAngleError - Threshold.coplanarityAngleWarning;
if (Math.abs(delta) < 0.0001) delta = 1.0;
float f = angle < Threshold.coplanarityAngleWarning ? 0f : angle >= Threshold.coplanarityAngleError ? 1f :
float f = angle >= Threshold.coplanarityAngleError ? 1f : angle < Threshold.coplanarityAngleWarning ? 0f :
Math.min((float) ((angle - Threshold.coplanarityAngleWarning) / delta / 2.7 + .5), 1f);

float red = 0f;
Expand Down
2 changes: 1 addition & 1 deletion src/org/nschmidt/ldparteditor/data/GL33ModelRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -1950,7 +1950,7 @@ private void renderThread() {
final double angle = gd4.calculateAngle();
double delta = Threshold.coplanarityAngleError - Threshold.coplanarityAngleWarning;
if (Math.abs(delta) < 0.0001) delta = 1.0;
float f = angle < Threshold.coplanarityAngleWarning ? 0f : angle >= Threshold.coplanarityAngleError ? 1f :
float f = angle >= Threshold.coplanarityAngleError ? 1f : angle < Threshold.coplanarityAngleWarning ? 0f :
Math.min((float) ((angle - Threshold.coplanarityAngleWarning) / delta / 2.7 + .5), 1f);

float r = 0f;
Expand Down

0 comments on commit f012287

Please sign in to comment.