POV-Ray : Newsgroups : povray.advanced-users : structures with povray : Re: structures with povray Server Time
18 May 2024 13:23:52 EDT (-0400)
  Re: structures with povray  
From: Warp
Date: 8 Nov 2001 10:55:22
Message: <3beaaaea@news.povray.org>
This would be specially useful if the structure could have a pointer to
a structure of the same type and if instances of these structures could be
created dynamically.
  This way you could make linked lists, binary trees and so on.

-- 
#macro N(D,I)#if(I<6)cylinder{M()#local D[I]=div(D[I],104);M().5,2pigment{
rgb M()}}N(D,(D[I]>99?I:I+1))#end#end#macro M()<mod(D[I],13)-6,mod(div(D[I
],13),8)-3,10>#end blob{N(array[6]{11117333955,
7382340,3358,3900569407,970,4254934330},0)}//                     - Warp -


Post a reply to this message

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