|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |