POV-Ray : Newsgroups : povray.beta-test : HF Macro Opinions : Re: HF Macro Opinions Server Time
29 Jul 2024 16:31:23 EDT (-0400)
  Re: HF Macro Opinions  
From: Anders K 
Date: 9 Apr 2002 17:51:04
Message: <3cb36248$1@news.povray.org>
> When using the HF macros and specifying a resolution of 20x20, what do you
> want to get?
> 20x20 point = 19*19*2 triangles
> or
> 21x21 points = 20*20*2 triangles

I suppose it doesn't matter much, since one can always increase or decrease
the resolution by 1, but it would make more sense to me to have 20*20*2
triangles. If nothing else, I think this would simplify the macros a little
bit. (Loop i from 0 to width and j from 0 to height, taking samples at
(i/width, j/height).)

Anders

--
light_source{6#local D=#macro B(E)#macro A(D)#declare E=(E-#declare
C=mod(E D);C)/D;C#end#while(E)#if(A(8)=7)#declare D=D+2.8;#else#if(
C>2)}torus{1..2clipped_by{box{-2y}}rotate<1 0C>*90translate<D+1A(2)
*2+1#else}cylinder{0(C-v=1).2translate<D+C*A(2)A(4)#end-2 13>finish
{specular 1}pigment{rgb x}#end#end#end-8;1B(445000298)B(519053970)B
(483402386)B(1445571258)B(77778740)B(541684549)B(42677491)B(70)}


Post a reply to this message

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