杀猪杀屁股,另外一种搞定方法,请举证推翻。
- (and
- (setq curve(car(entsel "\n选择对象:")))
- (= (vlax-curve-getEndParam curve) 4)
- (vlax-curve-isClosed curve)
- (setq d1 (vlax-curve-getDistAtParam curve 1))
- (setq d2 (- (vlax-curve-getDistAtParam curve 2) d1))
- (equal (vlax-curve-getArea curve) (* d1 d2) 1e-6);判断矩形面积公式是否成立
- )
|