修复 GiDrawUtility 参数校验与规范问题 B7、B9、S1 #67

Merged
gjm merged 1 commits from home-lenovo-legion-r9000/fix-gidrawutility-b7-b9-s1 AGit into main 2026-10-25 19:08:17 +08:00
Collaborator
  • B7: DrawPipe(pCurve, dR) 检查 getStartPoint 返回值,避免未定义点传给 getFirstDeriv。
  • B9: 补充参数校验:
    DrawDish 大直径为 0 时 2*dH/dD 除零;
    DrawCirTorus / DrawRectTorus 小半径不小于大半径时截面半径为负(RectTorus 另校验高度);
    DrawPipe(ptFrom, ptTo, ...) 零长度路径无法扫掠;
    DrawPipe(pCurve, dR) 半径非正。
  • S1: spliteCurve、deleteContainerOfArx 由文件级 static 移入已有的匿名 namespace。
- B7: DrawPipe(pCurve, dR) 检查 getStartPoint 返回值,避免未定义点传给 getFirstDeriv。 - B9: 补充参数校验: DrawDish 大直径为 0 时 2*dH/dD 除零; DrawCirTorus / DrawRectTorus 小半径不小于大半径时截面半径为负(RectTorus 另校验高度); DrawPipe(ptFrom, ptTo, ...) 零长度路径无法扫掠; DrawPipe(pCurve, dR) 半径非正。 - S1: spliteCurve、deleteContainerOfArx 由文件级 static 移入已有的匿名 namespace。
home-laptop added 1 commit 2026-10-25 19:07:16 +08:00
- B7: DrawPipe(pCurve, dR) 检查 getStartPoint 返回值,避免未定义点传给 getFirstDeriv。
- B9: 补充参数校验:
  DrawDish 大直径为 0 时 2*dH/dD 除零;
  DrawCirTorus / DrawRectTorus 小半径不小于大半径时截面半径为负(RectTorus 另校验高度);
  DrawPipe(ptFrom, ptTo, ...) 零长度路径无法扫掠;
  DrawPipe(pCurve, dR) 半径非正。
- S1: spliteCurve、deleteContainerOfArx 由文件级 static 移入已有的匿名 namespace。
gjm approved these changes 2026-10-25 19:08:14 +08:00
gjm merged commit 3e6d7f4dec into main 2026-10-25 19:08:17 +08:00
Sign in to join this conversation.
No Reviewers
No labels
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: gjm/envi-code#67