POV-Ray : Newsgroups : povray.unofficial.patches : Something fresh - symetry operator patch : Re: Something fresh - symetry operator patch Server Time
20 Jul 2024 21:29:15 EDT (-0400)
  Re: Something fresh - symetry operator patch  
From: Wlodzimierz ABX Skiba
Date: 11 May 2001 09:00:29
Message: <3afbe26d@news.povray.org>
Ron Parker wrote in message ...
> On Fri, 11 May 2001 09:04:59 +0200, Wlodzimierz ABX Skiba wrote:
> > x and x+y has meaning of vectors in POV (center of symetry)
> > ox is not <1,0,0> but axis x
>
> But there's no difference.

for geometry symmetry it is difference
I wanted translate symmetry from math to syntax
A=<3,2,3> symetry by x (<1,0,0>) -> A'=<-2,-2,-3>
A=<4,2,3> symetry by axis ox -> A'=<4,-2,-3>

> > and patch becouse now I'm adding support for plane{}
> > #local B=A@plane{y 1 rotate C translate z}
>
> And that macro would happily do this part as well.


and it is as easy to understand and code ?

ABX
--
#macro Sig(A,B,X)_(A,B)_(B,X)_(X,A)#end#macro _(A,B)cylinder{<A.x,A.y,3>,<B.u,
B.v,3>.1,9}#end global_settings{max_trace_level 9}light_source{0 1}camera{up y
*4right-3*x}blob{_(<3,1>,<1,-5>)_(<2,-2>,<4,-2>)Sig(x,<-1,1.5>,<1,3>)_(z-1,z-4
)pigment{rgb 1}}box{-3 3pigment{rgb 0}finish{reflection 1}hollow} // POV-Ray31


Post a reply to this message

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