fix: S9 修复 — CMake nurbs_surface 补充 + ray-tri 交点容差 + Delaunay3D WIP 标记
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user