Path: chuka.playstation.co.uk!scea!greg_labrec@interactive.sony.com From: mperdue@hrtc.net (Mario Perdue) Newsgroups: scea.yaroze.programming.3d_graphics Subject: Re: Accessing the vertices Date: Mon, 11 Aug 1997 03:30:55 GMT Organization: SCEA Net Yaroze News Lines: 27 Message-ID: <33ee8629.42022671@205.149.189.29> References: <33EE760B.AD778C3E@ix.netcom.com> NNTP-Posting-Host: firewall.hrtc.net X-Newsreader: Forte Free Agent 1.1/32.230 On Sun, 10 Aug 1997 21:16:43 -0500, Manny Najera wrote: >To access each vertex of a tmd, I have a pointer of tmd_vert type that >points to the vert_top property of the tmd_obj. How do I know when I've >reached the end of the vertex data? Does the pointer I'm using point to >NULL when I've read the last vertex? > Manny, The Object Structure looks like this: { u_long *vert_top; u_long n_vert; u_long *normal_top; u_long n_normal; u_long *primitive_top; u_long n_primitive; long scale; } As you have determined, *vert_top points to the first vertex. n_vert is the number of vertices. Mario