02-23-2005, 01:52 AM
LOL, are you serious? :oops: I really, really need to proofread my code more, Thanks.
The test works now:
The test works now:
Code:
With newobj
Get #readfile,,.numoftris
Print "Number of triangles: "; .numoftris
.tris = Allocate(.numoftris * Len(Tri))
For i = 0 To .numoftris - 1
Get #readfile,,.tris[i].verts()
Color i + 10
Print "Triangle: ";i
Print "X: "; .tris[i].verts(0).x; " Y: "; .tris[i].verts(0).y; " Z: "; .tris[i].verts(0).z
Print "X: "; .tris[i].verts(1).x; " Y: "; .tris[i].verts(1).y; " Z: "; .tris[i].verts(1).z
Print "X: "; .tris[i].verts(2).x; " Y: "; .tris[i].verts(2).y; " Z: "; .tris[i].verts(2).z
Next i
Close #readfile
End With