POV-Ray : Newsgroups : povray.general : 3D File foramt implimentations : 3D File foramt implimentations Server Time
29 Jul 2024 10:17:58 EDT (-0400)
  3D File foramt implimentations  
From: Thomas Lake
Date: 2 Jun 2002 20:00:18
Message: <3cfab192$1@news.povray.org>
I would like to expand my small Java utility mesh2udo to encompass other
file formats. I've been looking at the specs for several different file
formats:

http://www.tnt.uni-hannover.de/js/soft/compgraph/fileformats/
http://astronomy.swin.edu.au/~pbourke/3dformats/

 There is a lot to absorbe there and I haven't read enough to implement any
of them. However before I do I though it would be good to have an object
oriented frame work to build on, Java being an OO language. I was thinking
of making a superclass lets call it MeshFileFormat that would model all the
properties common to all file formats. This is where all the vertex data
about the mesh would be stored. Then I could extend this class for each file
format I want to implement. This should also make it easier to convert from
one file format to another because all the file format classes extend a
common class. Can anyone who has OO experience let me know if this sounds
like a good strategy, or can you think of a better way?

--
----------------------------------------------------------
Home Page: http://www.geocities.com/~thomaslake/
----------------------------------------------------------


Post a reply to this message

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