|
|
I am using the Generalized Dual Method to construct tilings, and then I export
them to POV-Ray, as an #include file, with spheres on the vertices and
cylinders on the edges. Always, the polygons in the tiling have been sorted
into subsets, and typically, I give a different color to each subset. Actually,
I write "texture{ Tk }" where k is an integer denoting the kth subset. This
image shows a simple example.
I have a problem and could use some help. I wish to use a fixed scene file as a
point of beginning for any such tiling, yet I do not know how many subsets may
exist. Yet if I have not defined T1, T2, T3 etc. in my scene file, I cannot
call the #include file. Currently I define T1 through T4. It occurs to me that
it would be nice to have a way to define Tk up to k=100 or some large number by
using colors.inc somehow. But I do not see quite how to do that. I am not much
of an expert in the POV SDL. In particular, I have had trouble with arrays, and
have never used #ifndef.
Hmmm. Suddenly I see I could have my own other #include file which defines Tk up
to any k, possibly by using random numbers for RGB components; and then I could
edit that #include file as needed in rendering.
TIA.
Post a reply to this message
Attachments:
Download 'tiling.jpg' (207 KB)
Preview of image 'tiling.jpg'
|
|