求助,如何把提取的闭合pline的顶点坐标转化为多边形的三维坐标
帮忙啊,我急用啊 <P>Function Point2dTo3d(pnts As Variant) As Variant<BR> Dim n As Integer<BR> Dim dots() As Double<BR> n = (UBound(pnts) + 1) / 2<BR> If n > 0 Then<BR> ReDim dots(n * 3 - 1) As Double<BR> For i = 0 To n - 1<BR> dots(i * 3) = pnts(i * 2)<BR> dots(i * 3 + 1) = pnts(i * 2 + 1)<BR> dots(i * 3 + 2) = 0<BR> Next i<BR> End If<BR> Point2dTo3d = dots<BR>End Function</P><P>Sub tt()<BR>Dim pnts(3) As Double<BR>For i = 0 To 3<BR>pnts(i) = i<BR>Next i</P>
<P>dots = Point2dTo3d(pnts)</P>
<P>For i = 0 To UBound(dots)<BR>Debug.Print dots(i)<BR>Next i<BR>End Sub<BR></P> 谢谢了.很好用啊
页:
[1]