POV-Ray : Newsgroups : povray.newusers : Height of a polygon. : Height of a polygon. Server Time
2 Jun 2024 13:06:55 EDT (-0400)
  Height of a polygon.  
From: gharryh
Date: 22 Jun 2013 16:40:01
Message: <web.51c60b85f9759873520168c30@news.povray.org>
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]
#declare housing_grnd =
difference {
    union {
        polygon{
            21,
            <17.925,28.575>,  <-17.925,28.575>, <-18.925,27.575>,
<-18.925,18.925>,
            <-27.575,18.925>, <-28.575,17.925>,
<-28.575,-17.925>,<-27.575,-18.925>,

<-18.925,-18.925>,<-18.925,-27.575>,<-17.925,-28.575>,<17.925,-28.575>,
            <18.925,-27.575>, <18.925,-18.925>, <27.575,-18.925>,
<28.575,-17.925>,
            <28.575,17.925>,  <27.575,18.925>,  <18.925,18.925>,
<18.925,27.575>,
            <17.925,28.575>
            pigment{ Red }
            rotate<90,0,0>
            scale<1,2,1>
        }
        cylinder{<-27.575,.05,17.925><-27.575,-.05,17.925>1  material{ MyRedLed
} }
        cylinder{<27.575,.05,17.925><27.575,-.05,17.925>1  material{ MyRedLed }
}
        cylinder{<-27.575,.05,-17.925><-27.575,-.05,-17.925>1  material{
MyRedLed } }
        cylinder{<27.575,.05,-17.925><27.575,-.05,-17.925>1  material{ MyRedLed
} }
        cylinder{<-17.925,.05,27.575><-17.925,-.05,27.575>1  material{ MyRedLed
} }
        cylinder{<17.925,.05,27.575><17.925,-.05,27.575>1  material{ MyRedLed }
}
        cylinder{<-17.925,.05,-27.575><-17.925,-.05,-27.575>1  material{
MyRedLed } }
        cylinder{<17.925,.05,-27.575><17.925,-.05,-27.575>1  material{ MyRedLed
} }
    }
}
[/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.


Post a reply to this message

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