fix: S9 测试 namespace 修复 (core→vde) + unused variable 消除
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
using namespace vde::boolean;
|
using namespace vde::boolean;
|
||||||
using namespace vde::mesh;
|
using namespace vde::mesh;
|
||||||
using core::Point3D;
|
using vde::Point3D;
|
||||||
|
|
||||||
// ── Helper: build a box mesh (12 triangles, 8 vertices) ──
|
// ── Helper: build a box mesh (12 triangles, 8 vertices) ──
|
||||||
// Face normals point outward (CCW winding from outside)
|
// Face normals point outward (CCW winding from outside)
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
|
||||||
using namespace vde::brep;
|
using namespace vde::brep;
|
||||||
using core::Point3D;
|
using vde::Point3D;
|
||||||
using core::Vector3D;
|
using vde::Vector3D;
|
||||||
|
|
||||||
// ═══════════════════════════════════════════════════════════
|
// ═══════════════════════════════════════════════════════════
|
||||||
// Basic entity creation (box, sphere, cylinder)
|
// Basic entity creation (box, sphere, cylinder)
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
|
||||||
using namespace vde::mesh;
|
using namespace vde::mesh;
|
||||||
using core::Point3D;
|
using vde::Point3D;
|
||||||
|
|
||||||
// ── Helper: compute circumsphere center and radius of 4 points ──
|
// ── Helper: compute circumsphere center and radius of 4 points ──
|
||||||
// Returns (center, radius_squared). If points are coplanar, radius_sq < 0.
|
// Returns (center, radius_squared). If points are coplanar, radius_sq < 0.
|
||||||
@@ -53,6 +53,7 @@ static bool verify_empty_circumsphere(
|
|||||||
if (r2 < 0.0) continue; // degenerate
|
if (r2 < 0.0) continue; // degenerate
|
||||||
|
|
||||||
double r = std::sqrt(r2);
|
double r = std::sqrt(r2);
|
||||||
|
(void)r; // explicitly unused, computed for potential debugging
|
||||||
for (const auto& pt : input_points) {
|
for (const auto& pt : input_points) {
|
||||||
// Skip vertices of this tetrahedron
|
// Skip vertices of this tetrahedron
|
||||||
double d2 = (pt - center).squaredNorm();
|
double d2 = (pt - center).squaredNorm();
|
||||||
|
|||||||
Reference in New Issue
Block a user