Skip to content

Commit

Permalink
fixing the point on plane epsilon check
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Harrington committed Feb 5, 2025
1 parent 412e80a commit 0003dff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/eu/mihosoft/vrl/v3d/Polygon.java
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,8 @@ public boolean arePointsCoplanar() {
}
for (int i = 0; i < vertices.size(); i++) {
double t = computeDistance( i);
if(Math.abs(t)>Plane.getEPSILON()) {
double d = Plane.getEPSILON()*10;
if(Math.abs(t)>d) {
Vector3d normal = plane.getNormal();
Vector3d pos = vertices.get(i).pos;
double dist = plane.getDist();
Expand Down

0 comments on commit 0003dff

Please sign in to comment.