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