diff --git a/src/brep/gdt.cpp b/src/brep/gdt.cpp index 3a05ffcd8..a60bbc9e0 100644 --- a/src/brep/gdt.cpp +++ b/src/brep/gdt.cpp @@ -492,7 +492,6 @@ std::vector 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; } } diff --git a/src/core/cam_advanced.cpp b/src/core/cam_advanced.cpp index e6225a8d9..3f87e99b5 100644 --- a/src/core/cam_advanced.cpp +++ b/src/core/cam_advanced.cpp @@ -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(ci)]; double cx_char = start_x + ci * (char_width + spacing); // 简化:为每个字符生成矩形轮廓