POV-Ray : Newsgroups : povray.general : mesh -> df3 converter. Server Time
19 Nov 2024 01:50:12 EST (-0500)
  mesh -> df3 converter. (Message 1 to 1 of 1)  
From: SÅ‚awomir Szczyrba
Subject: mesh -> df3 converter.
Date: 26 Jun 2002 19:12:12
Message: <slrnahkil5.2ns.steev@hot.pl>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.