POV-Ray : Newsgroups : povray.advanced-users : Tricky object alignment problem : Tricky object alignment problem Server Time
28 Jul 2024 10:29:24 EDT (-0400)
  Tricky object alignment problem  
From: Orchid XP v2
Date: 26 May 2006 17:03:16
Message: <44776d14$1@news.povray.org>
OK, have a look at this:

#macro Rectangle(A, B, C, D, r)
   sphere {A, r}
   sphere {B, r}
   sphere {C, r}
   sphere {D, r}
   cylinder {A, B, r}
   cylinder {B, C, r}
   cylinder {C, D, r}
   cylinder {D, A, r}
#end

As you can see, this draws a wireframe rectangle between 4 
user-specified points in space.

Assuming that all 4 points are actually co-plannar, what would the *the 
simplest* way to fit a box{} object into the middle of the thing?


Post a reply to this message

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