POV-Ray : Newsgroups : povray.advanced-users : Ok, seriously, I need help here.. : Re: Ok, seriously, I need help here.. Server Time: 9 Jul 2008 06:11:51 GMT
  Re: Ok, seriously, I need help here..  
From: Jan Dvorak
Date: 2 Mar 2008 21:03:06
> I really wish there was a built in way to define, or at least convert, 
> boxes into the same format as cylinders though, i.e.:
> 
> altbox {<endpoint1>,<endpoint2>,base_width}
> 
You can use Reorient_Trans() from transforms.inc and VDist() from 
math.inc to align the box and a vector average (p1+p2)/2 to position it. 
Not that tough.
-- 
You know you've been raytracing too long when...
you ever saw a beautiful scenerey and regretted not to take your 6" 
reflective ball and a digital camera, thinking "this would have been a 
perfect light probe"
-Johnny D


Post a reply to this message

Copyright 1991-2004 POV-Team™