yang611 发表于 2006-8-24 09:53:00

多线段与圆相交,如何得到交点坐标

<P>多线段与圆相交,如何得到交点坐标 </P>
<P>如题</P>
<P>应该调用那个函数,该怎么调用啊</P>

yfy2003 发表于 2006-8-24 10:57:00

intersectWith()

yang611 发表于 2006-8-24 17:18:00

<P>能具体点吗,</P>
<P>AcDbCircle *pCircb</P>
<P>AcDbEntity *pPline;<BR>&nbsp;&nbsp;&nbsp;AcGePoint3dArray &amp; vertices;<BR>&nbsp;&nbsp;pCircb-&gt;intersectWith(pPline,kExtendArg,AcGePlane::kXYPlane,&amp;vertices);</P>
<P>&nbsp;error C2664: “Acad::ErrorStatus AcDbEntity::intersectWith(const AcDbEntity *,AcDb::Intersect,AcGePoint3dArray &amp;,int,int) const” : 不能将参数 4 从“AcGePoint3dArray *__w64 ”转换为“AcGePoint3dArray &amp;”</P>
<P>这是怎么回事<BR></P>

yang611 发表于 2006-8-24 17:29:00

<P>AcGePoint3dArray &amp; vertices;</P>
<P><BR>一直提示 vertices必需初始化引用</P>
<P>该怎么初始化。</P>
<P>请指教</P>

pglyxq 发表于 2006-8-25 08:36:00

yang611 发表于 2006-8-25 10:16:00

<P>谢谢啊,</P>
<P>初学者,请多担待,请多指教</P>
页: [1]
查看完整版本: 多线段与圆相交,如何得到交点坐标