question on tutorial 10
on reading this tutorial how exactly is the file format layed out? can u give a quick example of a data file to read in?
forgive me if i''m wrong as i used lesson 10 a long ago, but as far as i can recollect, the file "data.txt" had defination of triangle strips that go and make up the room. Like for the floor it was something like points enclosed by two triangles say,
(First Triangle that makes say half the floor)
(0, 0, 0) - (1, 0, 0) - (1, 0, 1)
(Second Triangle that completes it)
(1, 0, 1) - (0, 0, 1) - (0, 0, 0)
when viewed in context of 3d planes.
i know this is confusing but once you get the hang of it you can make up all the room.
cyanide.
(First Triangle that makes say half the floor)
(0, 0, 0) - (1, 0, 0) - (1, 0, 1)
(Second Triangle that completes it)
(1, 0, 1) - (0, 0, 1) - (0, 0, 0)
when viewed in context of 3d planes.
i know this is confusing but once you get the hang of it you can make up all the room.
cyanide.
[size="1"]----#!/usr/bin/perlprint length "The answer to life,universe and everything";
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement