Advertisement

question on tutorial 10

Started by March 09, 2001 05:52 PM
1 comment, last by omegasyphon 23 years, 8 months ago
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.
[size="1"]----#!/usr/bin/perlprint length "The answer to life,universe and everything";
Advertisement
just remembered one thing more, there is a line at top that goes somthing like "NUMPOLLIES 36". This is the max. no of triangles that the file has. like 2 in above case.

cyanide.
[size="1"]----#!/usr/bin/perlprint length "The answer to life,universe and everything";

This topic is closed to new replies.

Advertisement