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