admin 发表于 2024-9-25 13:28:48

如何计算两条线段的交点AcGeLineSeg3d




AcGeLineSeg3d acGeLineSegtmp1(AcGePoint3d(0,100,0),AcGePoint3d(50,100,0));
AcGeLineSeg3d acGeLineSegtmp2(AcGePoint3d(-50,50,0),AcGePoint3d(-50,120,0));
AcGeTol gGetol;gGetol.setEqualPoint(0.001);//设置精度
AcGePoint3d intPnt;//交点
bool bRec = acGeLineSegtmp1.intersectWith(acGeLineSegtmp2,intPnt,gGetol);//交点
页: [1]
查看完整版本: 如何计算两条线段的交点AcGeLineSeg3d