|
|
Hi.
I wrote simple perl script, to convert a triangle mesh (or just a bunch
of points :) to df3 density file (i needed it for my IRTC entry :)
Script 'understands' a triangle notation, ex.
triangle {
<-0.119059, 0.441103, 0.259941>,
<-0.132874, 0.442106, 0.254365>,
<-0.138172, 0.442888, 0.256236>
}
(well, to be honest - it looks only for <float,float,float> :)
There's no command line options (except a name of input file) - you need
to modify script.
Script can create a df3 file containing :
- points described as above
- 'halos' around those points (fourteen additional points)
- edges (treats every three poins as a face)
- 'traces' (lines between closest poinst - maximum distance can be specified)
You can find this script at < http://steev.republika.pl/tri2df3.pl >
Slawek
--
________
_/ __/ __/ Bad FAT? My hard disk has high cholesterol?
\__ \__ \_______________________________________________________________
Post a reply to this message
|
|