Skip to content

Commit 9efd0ce

Browse files
authored
Merge pull request #19 from AndrewCarvalho/intersection-rounding
Intersection rounding
2 parents ac4fe38 + cd5e098 commit 9efd0ce

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

EzySlice/Framework/Plane.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public SideOfPlane SideOf(Vector3 pt) {
8787
return SideOfPlane.UP;
8888
}
8989

90-
if (result < float.Epsilon) {
90+
if (result < -float.Epsilon) {
9191
return SideOfPlane.DOWN;
9292
}
9393

EzySlice/Framework/Triangulator.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,6 @@ public static bool MonotoneChain(List<Vector3> vertices, Vector3 normal, out Lis
155155
// ensure List does not dynamically grow, performing copy ops each time!
156156
tri = new List<Triangle>(triCount / 3);
157157

158-
float maxDiv = Mathf.Max(maxDivX, maxDivY);
159-
160158
float width = maxDivX - minDivX;
161159
float height = maxDivY - minDivY;
162160

0 commit comments

Comments
 (0)