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