POV-Ray : Newsgroups : povray.newusers : Height of a polygon. : Re: Height of a polygon. Server Time
21 Jun 2024 16:18:27 EDT (-0400)
  Re: Height of a polygon.  
From: William F Pokorny
Date: 22 Jun 2013 20:14:10
Message: <51c63dd2$1@news.povray.org>
On 06/22/2013 04:39 PM, gharryh wrote:
> I created a polygon to make a object that has rounded edges.
> Its works wel apart that i cant get the height of the polygon any larger.
> {code]
...
> [/code]
> Looking from above the polygon looks like it should be.
>  From the side it looks that there is no polygon.
> It needs to be as thick as the rounds at the edgd\es.
> Acoording to the documentation it says:
>      }
>      //scale and rotate as needed here
>    }
> But the scale modifier seems not to work.
>
>
The polygon object is in the same class of objects as the disc. It is 
completely flat so the scale in y of 2 in your code is a scale of an 
object with thickness 0.0.

You can instead use a prism :

prism {
     linear_spline
     linear_sweep
     0.0, 0.05, 21,
     <17.9250,28.5750>
     <-17.9250,28.5750>
     <-18.9250,27.5750>
     <-18.9250,18.9250>
     <-27.5750,18.9250>
     <-28.5750,17.9250>
     <-28.5750,-17.9250>
     <-27.5750,-18.9250>
     <-18.9250,-18.9250>
     <-18.9250,-27.5750>
     <-17.9250,-28.5750>
     <17.9250,-28.5750>
     <18.9250,-27.5750>
     <18.9250,-18.9250>
     <27.5750,-18.9250>
     <28.5750,-17.9250>
     <28.5750,17.9250>
     <27.5750,18.9250>
     <18.9250,18.9250>
     <18.9250,27.5750>
     <17.9250,28.5750>
     pigment { color Red }
     translate <0.0,-0.025,0.0>
     rotate <90.0,0,0>
}

Bill P.


Post a reply to this message

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