POV-Ray : Newsgroups : povray.advanced-users : Ok, seriously, I need help here.. : Re: Ok, seriously, I need help here.. Server Time
5 Jul 2024 15:22:12 EDT (-0400)
  Re: Ok, seriously, I need help here..  
From: Jan Dvorak
Date: 2 Mar 2008 16:03:06
Message: <47cb160a$1@news.povray.org>
> 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 2003-2023 Persistence of Vision Raytracer Pty. Ltd.