| 
  | 
Hi,
I have quite compicated CSG object like
union {
  union {
    sphere {  }  // <--- A
    rotate ...  translate ..
  }
  rotate ...  translate ..
}
// <--- B
and I want to find out what wuld be position of object A in place B (in 
coordinates in scope B).  I could do manualy:
union {
  union {
    sphere { CENTER 1  }  // <--- A
    rotate R1  translate T1
  }
  rotate R2  translate T2
}
// <--- B
#local P = vrotate(vrotate(CENTER,R1)+T1  ,  R2) + T2;
(or simmilar formula) but is there some shor cut? If not maybe its worth to 
add such possibility, it will be greate for more advanced cript (area in 
with Pov *rulez*)
i.e. I have some code as above that creates an robot-arm, and I want to 
know absolute position of end of arm so that I can write script that will 
create nice cable (spline/spheresweep) from end of arm to computer etc...
-- 
http://www.raf256.com/3d/
Rafal Maj 'Raf256', home page - http://www.raf256.com/me/
Computer Graphics
 Post a reply to this message 
 | 
  |