本帖最后由 自贡黄明儒 于 2014-1-13 14:16 编辑
可以直接比较pt1和pt2两点误差在合理内就可以了,不求距离更简化
 - ;;pt到直线(弧)的垂点是否在直线(弧)上 自贡黄明儒
- ;;(HH:PtIn (getpoint) (car (entsel)))
- (defun HH:PtIn (pt Line)
- (equal (vlax-curve-getClosestPointTo Line Pt t)
- (vlax-curve-getClosestPointTo Line Pt)
- 1e-5
- )
- )
|