01-18-2007 05:22 PM
02-06-2007 02:46 PM
Hy
maybe this question is not so appealing, but i would have really appreciated any suggestion on how to built a 3dsurface grid starting from x,y,depth data on a txt file
thanks
beta66
02-20-2007 11:28 AM
If your still interested I had some luck doing this....
Dim xs, ys, zs As Variant
Dim j
Dim ArrX(0 To 11) As Double
Dim ArrY(0 To 11) As Double
Dim ArrZ(0 To 11) As Double
xs = Array(-20, , -30, -30, -40, -10, -30, -30, -53, -5, -30, -70, -30)
ys = Array(-70, -55, -79, -70, -70, -42, -90, -70, -70, -30, -70, -100)
zs = Array(1500, 1500, 1500, 1500, 2000, 2000, 2000, 2000, 2500, 2500, 2500, 2500)
For j = 0 To 11
ArrX(j) = CDbl(xs(j)) 'I don't know why but this type cast was required
ArrY(j) = CDbl(ys(j))
ArrZ(j) = CDbl(zs(j))
Next j
CWGraph3D1.Plot3DMesh ArrX, ArrY, ArrZ
good luck with your project
Curt
02-22-2007 10:19 AM
hi curt c
The code you kindly submitted is, actually, similar to the one I'm already using. Infact both codes use the method 3dmesh. What i would use is the method 3dsurface or 3dsimplesurface in order to plot contourlines on the surface, but the problem is that I don't know how to built the z(i,j) matrix from available "z" data present on txt file.
Thanks
Beta66