From f739ae5b0e2da14039763907b5066dcda4eef3bc Mon Sep 17 00:00:00 2001 From: GNSS-Stylist Date: Tue, 5 Nov 2024 09:07:36 +0200 Subject: [PATCH] 3d-quickhull: Fix issue with many points on one plane See https://github.com/karimnaaji/3d-quickhull/issues/2 --- .../Lidar/PointFilter/ConvexHull/3d-quickhull/quickhull.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PostProcessing/Lidar/PointFilter/ConvexHull/3d-quickhull/quickhull.h b/PostProcessing/Lidar/PointFilter/ConvexHull/3d-quickhull/quickhull.h index 7d9617e..f7a8682 100644 --- a/PostProcessing/Lidar/PointFilter/ConvexHull/3d-quickhull/quickhull.h +++ b/PostProcessing/Lidar/PointFilter/ConvexHull/3d-quickhull/quickhull.h @@ -544,7 +544,7 @@ int qh__face_can_see_vertex_epsilon(qh_context_t* context, qh_face_t* face, qh_v } else { dot = fabsf(dot); - if (dot <= epsilon && dot >= 0) { + if (dot <= epsilon && dot > 0) { qh_vec3_t n = face->normal; // allow epsilon degeneration along the face normal