POV-Ray : Newsgroups : povray.unofficial.patches : Something fresh - symetry operator patch : Re: Something fresh - symetry operator patch Server Time
21 Jul 2024 03:25:31 EDT (-0400)
  Re: Something fresh - symetry operator patch  
From: Wlodzimierz ABX Skiba
Date: 11 May 2001 10:26:26
Message: <3afbf692@news.povray.org>
Ron Parker wrote in message ...
> Ah, well the macro I gave mirrors the first vector about the axis defined
> by the second vector (unless the second vector is zero.)  To mirror around
> a point, you'd need to do
>
> #macro PtSym( Vec, Pt )
>  (2*Pt-Vec)
> #end

Yes, I know, it's part of my patch.
Please don't show me any more examples of how code this - I know it!
Also I know that we don't need dot operator for vector.
Just vdot(V,x) instead of V.x
We don't need A?B:C becouse #if(A)B#else C #end works fine
I just needed it becouse of less typing and more natural for me

> it quickly leads to code that looks like line noise.

just like our sigs

> (though maybe
> one could make an argument for |V| to mean vnormalize...)

good idea

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