POV-Ray : Newsgroups : povray.general : Connect 2 points with a box : Re: Connect 2 points with a box Server Time
7 Aug 2024 03:18:22 EDT (-0400)
  Re: Connect 2 points with a box  
From: Christoph Hormann
Date: 29 Nov 2001 03:24:06
Message: <3C05F0A7.21C964B@gmx.de>
Martin Thoma wrote:
> 
> Hello!
> 
> I have connected 2 points in space with a cylinder, which works fine:
> 
> [...]
> 
> What I now need is to replace the cylinder with a box. The box sould be
> a kind of a thin plate, lets say width=2, depth=0.5, and it should be
> rotated that it start-point is <xv1, yv1, zv1> and its end-point is
> <xv2, yv2, zv2>. This points should be centered in width and depth.
> 
> Any idea, how I can calculate the 2 points of a box out of this
> information?
> 

Check the 'Reorient_Trans()' macro in Povray 3.5.

Christoph

-- 
Christoph Hormann <chr### [at] gmxde>
IsoWood include, radiosity tutorial, TransSkin and other 
things on: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

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