POV-Ray : Newsgroups : povray.binaries.utilities : PERL: POVTree to OBJ Server Time
31 Oct 2024 12:15:38 EDT (-0400)
  PERL: POVTree to OBJ (Message 1 to 2 of 2)  
From: Mike Williams
Subject: PERL: POVTree to OBJ
Date: 3 May 2003 06:34:57
Message: <3eb39b51@news.povray.org>
A simple PERL script for converting the mesh files created by POVTree to
Wavefront OBJ format.

Give it the root of the filename and it will read the .INC file and create a
.OBJ file.

Obviously, it won't work with trees that have foliage other than the "mesh"
leaf types.


Post a reply to this message


Attachments:
Download 'mesh2obj.pl.txt' (2 KB)

From: gimi
Subject: Re: PERL: POVTree to OBJ
Date: 3 May 2003 07:58:05
Message: <3eb3aecd$1@news.povray.org>
Mike Williams wrote:

> A simple PERL script for converting the mesh files created by POVTree to
> Wavefront OBJ format.
[...]

Thanks for that!

Anyway, I strongly suggest that you review this bit of code and
- use strict;
- use variable names that speak for themselves,
- declare variables using "my",
and maybe add some more comments where appropriate.

BTW, your code produces warnings - you should definitely
also use the "-w" flag (or "use warnings;" if you're running
Windows)!


HTH - SCNR ;)

gimi

-- 
++++++++++++++++ http://www.psico.ch/ ++++++++++++++++


Post a reply to this message

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