|
|
"Samuel B." <stb### [at] hotmailcom> wrote:
> "Samuel B." <stb### [at] hotmailcom> wrote:
> > Pattern function for an n-foil
>
> Ideally, the center would be empty, but I don't know how to approach that
> problem atm :P
#declare Radius = 0.2;
#declare Circle = function {sqrt (x*x + y*y)}
/ function before repetition
#local F =
function {
pattern {
function{
//PF(0, sqrt(x*x+pow(max(y, 0), 2)), 0)
PF(0, max (sqrt(x*x+pow(max(y, 0), 2)), Circle (x, y, z) - Radius), 0)
}
rotate -z*180/N
translate y*Scale
}
}
Gives me an N-sided hole in the center.
Not sure how to get it to be an actual circle....
- BW
Post a reply to this message
|
|