Browse Source

fix: Add a condition to skip inserting arcs

main
linchforever 2 days ago
parent
commit
24a20b5e00
  1. 3
      primitive_process/src/subface/geometry/polyline_fillet.cpp

3
primitive_process/src/subface/geometry/polyline_fillet.cpp

@ -115,6 +115,9 @@ Corner compute_corner(const std::vector<Eigen::Vector2d>& pts,
const double max_turn = cfg.max_fillet_turn_angle_deg * (pi / 180.0); const double max_turn = cfg.max_fillet_turn_angle_deg * (pi / 180.0);
if (turn_angle > max_turn) return c; if (turn_angle > max_turn) return c;
// 钝角不插入圆弧
if (turn_angle > pi_div_2) return c;
double trim = 0.0; double trim = 0.0;
if (cfg.auto_mode) { if (cfg.auto_mode) {
// 依据局部转角和相邻弧段长度计算最小圆弧, // 依据局部转角和相邻弧段长度计算最小圆弧,

Loading…
Cancel
Save