fix: S9 修复 — CMake nurbs_surface 补充 + ray-tri 交点容差 + Delaunay3D WIP 标记
CI / Build & Test (push) Failing after 16m57s
CI / Release Build (push) Failing after 27s

This commit is contained in:
茂之钳
2026-07-23 15:39:24 +00:00
parent 5a512674c4
commit db8c675dbb
3 changed files with 9 additions and 9 deletions
+1
View File
@@ -41,6 +41,7 @@ add_library(vde_curves STATIC
curves/nurbs_curve.cpp
curves/bezier_surface.cpp
curves/bspline_surface.cpp
curves/nurbs_surface.cpp
curves/tessellation.cpp
)
target_include_directories(vde_curves
+2 -2
View File
@@ -35,7 +35,7 @@ static bool ray_tri_intersect(
if (v < 0.0 || u + v > 1.0) return false;
double t = f * e2.dot(q);
return t > 1e-10;
return t > 0.0;
}
bool is_point_inside_mesh(const core::Point3D& p, const HalfedgeMesh& mesh) {
@@ -103,7 +103,7 @@ bool is_point_inside_bvh(const core::Point3D& p,
double v = f * dir.dot(q);
if (v < 0.0 || u + v > 1.0) continue;
double t = f * e2.dot(q);
if (t > 1e-10) ++hits;
if (t > 0.0) ++hits;
}
return (hits & 1) == 1;
}