POV-Ray : Newsgroups : povray.unofficial.patches : Something fresh - symetry operator patch : Something fresh - symetry operator patch Server Time
20 Jul 2024 21:17:08 EDT (-0400)
  Something fresh - symetry operator patch  
From: Wlodzimierz ABX Skiba
Date: 10 May 2001 12:53:49
Message: <3afac79d@news.povray.org>
I've created simple addition to expressions - vector symmetry operator "@".

Syntax
  Vector @ SymmetryRefference
  SymmetryRefference : Vector | ox | oy | oz | xy | xz | yz

Instead of explanation just examples of usage and old equivalents

#local A=<7,3,4>;
#local B=A@xy; /* B=<A.x,A.y,-A.z> */
#local B=A@xz; /* B=<A.x,-A.y,A.z> */
#local B=A@yz; /* B=<-A.x,A.y,A.z> */
#local B=A@ox; /* B=<A.x,-A.y,-A.z> */
#local B=A@oy; /* B=<-A.x,A.y,-A.z> */
#local B=A@oz; /* B=<-A.x,-A.y,A.z> */
#local B=A@0; /* B=<-A.x,-A.y,-A.z> */
#local B=A@A; /* B=A */
#local B=A@(A-1) /* B=A-2 */

if there is any person interested in source to this patch I can upload it on
this news server.

--
#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.