POV-Ray : Newsgroups : povray.general : Duplicate ? : Re: Duplicate ? Server Time
5 Aug 2024 10:20:42 EDT (-0400)
  Re: Duplicate ?  
From: Warp
Date: 26 Nov 2002 04:28:03
Message: <3de33ea3@news.povray.org>
This can be made even easier if you put the data inside an array and
then create the mesh from it. This avoids repetition of calling the macro
and giving it the same transformation each time (you can call the macro
only at one line inside a loop).

  (Of course you will save a lot of space if you store the vertices and
triangle indices separately, as in the mesh2 format, but that's another
story.)

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


Post a reply to this message

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