有趣的是,但是我无法复制这个bug。。。
我想建议使用像李提供的polyinters这样的函数(不知道他已经写了这样的东西)。
我所知道的intersectwith方法的唯一失败是:
- (setq rtn ; in case the object is self intersecting
- (cons ; but the problem is that this considers LWPOLY's/SPLINE's mid vertices as intersections (i.e. all vertices, except the endpoints)
- (vlax-list->3D-point (vlax-invoke o1 'InterSectWith o1 acExtendNone))
- rtn
- )
- ); setq rtn
顺便说一句,Lee函数的一种变体,使用vlax curveGetPointAtParam在分段处分割曲线,并对两个曲线对象的每对分段使用inters,可能“完成了这项工作”,尽管这种方法在精度和速度性能上会有所不同。也许这个想法更有效的方法是把它和这个结合起来。 |