Skip to content

Commit

Permalink
Merge pull request #19 from AndrewCarvalho/intersection-rounding
Browse files Browse the repository at this point in the history
Intersection rounding
  • Loading branch information
DavidArayan authored Jun 13, 2018
2 parents ac4fe38 + cd5e098 commit 9efd0ce
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion EzySlice/Framework/Plane.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public SideOfPlane SideOf(Vector3 pt) {
return SideOfPlane.UP;
}

if (result < float.Epsilon) {
if (result < -float.Epsilon) {
return SideOfPlane.DOWN;
}

Expand Down
2 changes: 0 additions & 2 deletions EzySlice/Framework/Triangulator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,6 @@ public static bool MonotoneChain(List<Vector3> vertices, Vector3 normal, out Lis
// ensure List does not dynamically grow, performing copy ops each time!
tri = new List<Triangle>(triCount / 3);

float maxDiv = Mathf.Max(maxDivX, maxDivY);

float width = maxDivX - minDivX;
float height = maxDivY - minDivY;

Expand Down

0 comments on commit 9efd0ce

Please sign in to comment.