Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pointer Bug?
#7
LOL, are you serious? :oops: I really, really need to proofread my code more, Thanks.

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
Reply


Messages In This Thread
Pointer Bug? - by lkd85 - 02-22-2005, 07:36 PM
Pointer Bug? - by steven_basic - 02-22-2005, 08:41 PM
Pointer Bug? - by v3cz0r - 02-22-2005, 08:42 PM
Pointer Bug? - by lkd85 - 02-22-2005, 11:41 PM
Pointer Bug? - by lkd85 - 02-23-2005, 12:06 AM
Pointer Bug? - by v3cz0r - 02-23-2005, 12:59 AM
Pointer Bug? - by lkd85 - 02-23-2005, 01:52 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)