POV-Ray : Newsgroups : povray.object-collection : Polyhedra library : Polyhedra library Server Time
20 Apr 2024 07:00:05 EDT (-0400)
  Polyhedra library  
From: Bill Pragnell
Date: 21 Jul 2009 17:40:00
Message: <web.4a66345af9355cc2d5649c20@news.povray.org>
I have a question concerning the polyhedra objects I have recently been
amassing. Silly me, I haven't been creating the include files with the object
collection in mind, and there are A LOT of include files.

I have organised the polyhedra into groups (Platonic, Archimedean etc). Each
group has a main include file, which has a list of everything defined in that
group and another set of includes. Each polyhedron then has its own separate
include file, which defines three macros and a global vertex array. In this
way, one can include individual shapes without having to include the whole lot,
or a whole group without having to manually list the whole lot. I've been
putting the groups into separate directories for convenience, although this
needn't be compulsory. The macros and arrays are all prefixed by the shape name
and an underscore (e.g., tetrahedron_faces(), tetrahedron_edges() etc), and each
include file is named for this prefix.

My question is, therefore (and eventually!), is this layout sufficient for
inclusion in the object library? It feels sensible to submit each group as a
separate item, but the prefixes are per shape-include, not per group. Also, as
there are so many files per group (92 shapes for the Johnson solids, for
example) it might be better to submit a .zip file - is this supported by the
submission system?

Any advice..? :-)

Bill


(I'm also happy to host them on my own site, but this of course defeats the
purpose of the object collection...)


Post a reply to this message

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