|
|
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
|
|