POV-Ray : Newsgroups : povray.advanced-users : matrix extraction from transformation : matrix extraction from transformation Server Time
29 Jul 2024 16:24:20 EDT (-0400)
  matrix extraction from transformation  
From:
Date: 9 Nov 2001 04:41:30
Message: <qf8nut4o6ahanjc7s6jc8kqnub2735js8p@4ax.com>
How can I extract components of matrix from Transform identifier ? At source
level it is easy and I can patch it easy to get array from transform. But with
3.5 I have no sources so I have to extract it with manipulation. I suppose
taking some unit vectors and read it after this transformation I can achive
components on transformation matrix. It could be simple when it could be only
translation and scale. But I think about universal macro with transform as
parameter and array[4][3] as result. Should I resolve as many equations as it
contain? What is the shortest way? Anybody have ready solution or should I fight
with it?

ABX
--
#declare _=function(a,b,x){((a^2)+(b^2))^.5-x}#default {pigment{color rgb 1}}
union{plane{y,-3}plane{-x,-3}finish{reflection 1 ambient 0}}isosurface{ //ABX
function{_(x-2,y,1)|_((x+y)*.7,z,.1)|_((x+y+2)*.7,z,.1)|_(x/2+y*.8+1.5,z,.1)}
contained_by{box{<0,-3,-.1>,<3,0,.1>}}translate z*15finish{ambient 1}}//POV35


Post a reply to this message

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