POV-Ray : Newsgroups : povray.newusers : Faceted sphere? : Re: Faceted sphere? Server Time
26 Sep 2024 17:45:37 EDT (-0400)
  Re: Faceted sphere?  
From: Shay
Date: 7 Mar 2005 10:51:09
Message: <422c786d$1@news.povray.org>
X-Caliber wrote:
> 
> I don't follow how they [planes] would actually work though, as
> opposed to boxes which are > 2 dimensional, therefore much saner
> to operate on 3 dimensional objects with.

Planes are three dimensional. You are looking at the surface, but 
everything "below" the surface is considered inside the plane. Look at 
this object, for instance:

intersection {
   plane { x, 1 }
   plane { -x, 1 }
   plane { y, 1 }
   plane { -y, 1 }
   plane { z, 1 }
   plane { -z, 1 }
   pigment { rgb y }
}
camera {
   location <5,5,5>
   look_at <0,0,0>
}
light_source {
   <25,250,500>
   color rgb 1
}

This makes a cube. Intersecting planes can also be rotated to make a 
faceted sphere, although a mesh would be tons easier. Rotate points 
around an axis and then connect the points with triangles.

  -Shay


Post a reply to this message

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