[求助]如何得到两条多义线的交点
<P>任意两条多义线,如何得到他们的交点.</P><P>或直接求两条多义线的面积(主要用于公路中填挖面积的计算)</P> Dim intPoints As Variant<BR> intPoints = lineobj.IntersectWith(circleobj, acExtendNone)<BR> <BR> ' Print all the intersection points<BR> Dim I As Integer, j As Integer, k As Integer<BR> Dim str As String<BR> If VarType(intPoints) <> vbEmpty Then<BR> For I = LBound(intPoints) To UBound(intPoints)<BR> str = "Intersection Point[" & k & "] is: " & intPoints(j) & "," & intPoints(j + 1) & "," & intPoints(j + 2)<BR> MsgBox str, , "IntersectWith Example"<BR> str = ""<BR> I = I + 2<BR> j = j + 3<BR> k = k + 1<BR> Next<BR> End If <P> 2桉的方法好象不行,能否再更新一下,运行时会提示每二行的问题“此处需要物体”</P>
<P>本人也在找一个求多边形各顶点的方法,不知道可否赐教,多谢</P> <P>看看这里</P>
<P><A href="http://www.mccad.net/bbs/dispbbs.asp?BoardID=3&replyID=53144&id=26425&skin=0" target="_blank" >http://www.mccad.net/bbs/dispbbs.asp?BoardID=3&replyID=53144&id=26425&skin=0</A></P>
页:
[1]