POV-Ray : Newsgroups : povray.general : Duplicate ? : Re: Duplicate ? Server Time
5 Aug 2024 10:26:05 EDT (-0400)
  Re: Duplicate ?  
From: Rafal 'Raf256' Maj
Date: 25 Nov 2002 12:45:51
Message: <Xns92D1BE53324FBraf256com@204.213.191.226>
Christopher James Huff <chr### [at] maccom> wrote in
news:chr### [at] netplexaussieorg 

as I alread told, I know it, but it needs quite un-comfortable work around.
I must repleace

union {
  //...
  mesh {triangle{a,b,c} triangle{d,e,f} triangle{g,h,i} rotate A }
  //...
  mesh {triangle{a,b,c} triangle{d,e,f} triangle{g,h,i} rotate B }
  //...
  mesh {triangle{a,b,c} triangle{d,e,f} triangle{g,h,i} rotate C }
  rotate X
}

with

mesh {  
  //...
  triangle{vrotate(a,A),vrotate(b,A),vrotate(c,A)}
  triangle{vrotate(d,A),vrotate(e,A),vrotate(f,A)}
  triangle{vrotate(g,A),vrotate(h,A),vrotate(i,A)}
  //...
  triangle{vrotate(a,B)//.....
  triangle{vrotate(d,B)//.....
  triangle{vrotate(g,B)//.....
  //...
  triangle{vrotate(a,C)//.....
  triangle{vrotate(d,C)//.....
  triangle{vrotate(g,C)//.....
  rotate X
}

not to mention scale and translate in every triangel.

I hnow this is possible, but I suggest to make it more comfortable.



-- 
#macro g(U,V)(.4*abs(sin(9*sqrt(pow(x-U,2)+pow(y-V,2))))*pow(1-min(1,(sqrt(
pow(x-U,2)+pow(y-V,2))*.3)),2)+.9)#end#macro p(c)#if(c>1)#local l=mod(c,100
);g(2*div(l,10)-8,2*mod(l,10)-8)*p(div(c,100))#else 1#end#end light_source{
y 2}sphere{z*20 9pigment{function{p(26252423)*p(36455644)*p(66656463)}}}//M


Post a reply to this message

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