POV-Ray : Newsgroups : povray.newusers : How to make a plane solid Server Time
2 Nov 2024 11:27:11 EDT (-0400)
  How to make a plane solid (Message 1 to 3 of 3)  
From: K
Subject: How to make a plane solid
Date: 21 Jun 2004 11:52:02
Message: <web.40d4701c12eb3f19e3d7a8e0@news.povray.org>
Hello,

How can I make a plane solid? In more detail: I have a complex polygon (2D)
and want to give that polygon a depth (3D). How do I do that? Just scaling
the polygon doesn't work. I think that's because the "depth" of a plane
polygon is just 0 so x*0 is still 0.

Thanks for help

Bye,
K


Post a reply to this message

From: Christoph Hormann
Subject: Re: How to make a plane solid
Date: 21 Jun 2004 12:15:02
Message: <cb71cd$76a$1@chho.imagico.de>
K wrote:
> Hello,
> 
> How can I make a plane solid? In more detail: I have a complex polygon (2D)
> and want to give that polygon a depth (3D). How do I do that? Just scaling
> the polygon doesn't work. I think that's because the "depth" of a plane
> polygon is just 0 so x*0 is still 0.

What are you talking about - planes or polygons?  Planes are solid in 
POV-Ray in the way that everything below the plane surface is inside the 
plane.  Polygons are not.  If you are looking for a shape that resembles 
an extrusion of a polygon you could have a look at the prism shape.

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 01 May. 2004 _____./\/^>_*_<^\/\.______


Post a reply to this message

From: povray
Subject: Re: How to make a plane solid
Date: 22 Jun 2004 11:08:31
Message: <40d82f99.2633637@localhost>
On Sat, 19 Jun 2004 12:55:56 EDT, "K" <k-p### [at] ailisde> wrote:

>Hello,
>
>How can I make a plane solid? In more detail: I have a complex polygon (2D)
>and want to give that polygon a depth (3D). How do I do that? Just scaling
>the polygon doesn't work. I think that's because the "depth" of a plane
>polygon is just 0 so x*0 is still 0.
>

If you want to "extrude" a 2d polygon, you might want to
try using the prism object.

Here is a prism example that makes a hexagon with depth:

prism {
  linear_sweep
  linear_spline
  -0.1,  // These two numbers ...
  0.1,   // ... control the extrusion.
  7,     // number of points
  <-1, 0>,   // first point
  <-0.5, sqrt(3)>,
  <0.5, sqrt(3)>,
  <1, 0>,
  <0.5, -sqrt(3)>,
  <-0.5, -sqrt(3)>,
  <-1, 0>  // to close the shape, last point = first point
  pigment { color rgb <0, 0.5, 1> }
  finish { ambient 0.3 diffuse 0.7 }
}



>Thanks for help
>

Hope that helps

>Bye,
>K
>


-- 
to all the companies who wait until a large user base becomes
dependant on their freeware, then shafting said happy campers with
mandatory payment for continued usage. I spit on your grave.


Post a reply to this message

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