cleanup: remove unused variables in gdt.cpp and cam_advanced.cpp
Build & Test / build-and-test (push) Canceled after 0s
VDE Build & Test / build-and-test (push) Canceled after 0s
Build & Test / python-bindings (push) Canceled after 0s

This commit is contained in:
hm
2026-08-05 13:34:15 +08:00
parent 9e11d07352
commit b5954c467d
2 changed files with 1 additions and 4 deletions
+1 -2
View File
@@ -492,7 +492,6 @@ std::vector<GDTCallout> create_gdt_frame(
// Analyze face geometry to determine appropriate GD&T
auto face_edges = model.face_edges(fid);
bool is_planar = true; // simplified: assume planar if < 6 edges
bool is_cylindrical = (face_edges.size() <= 4); // heuristic
// Default: Flatness for planar faces, Cylindricity for cylindrical
@@ -784,7 +783,7 @@ double compute_circular_runout(const BrepModel& body,
Vector3D to_q(q.x() - axis_center.x(), q.y() - axis_center.y(), q.z() - axis_center.z());
double proj2 = to_q.dot(axis_dir);
Vector3D radial2 = to_q - axis_dir * proj2;
double dev = std::abs(radial.norm() - radial2.norm());
double dev = std::abs(r - radial2.norm());
if (dev > max_dev) max_dev = dev;
}
}
-2
View File
@@ -921,7 +921,6 @@ ProbingResult probing_cycle_with_result(const Tool& tool,
double bmax_v = (d == 0) ? bmax.x() : (d == 1) ? bmax.y() : bmax.z();
double app_v = (d == 0) ? approach.x() : (d == 1) ? approach.y() : approach.z();
double dir_v = dir[d];
double far_v = (d == 0) ? far_point.x() : (d == 1) ? far_point.y() : far_point.z();
if (std::abs(dir_v) < 1e-12) continue;
@@ -1174,7 +1173,6 @@ Toolpath engraving_toolpath(
double y = cy;
for (int ci = 0; ci < n_chars; ++ci) {
char ch = text[static_cast<size_t>(ci)];
double cx_char = start_x + ci * (char_width + spacing);
// 简化:为每个字符生成矩形轮廓