|
![](/i/fill.gif) |
clipka a écrit :
> You can't fill 3D space with spheres - it would leave gaps (unless you
> allow for fractal filling).
I understood the initial idea as infinite repetition of a "unit" block
(box, sphere or whatever). Gap was irrevelant, but the pattern would be
regular.
There is 2 regular filling of infinite 3D with spheres, and 1 regular
filling with cube. The sphere's ones are more compact that the cubic
one. Is there others ? (which might be compact & regular with the right
volume)
BTW, about fractal, would a menger make sense ?
2D patterns for filling the plane, I made a few in 3.1g, for regular
tiled floor. tiling of 2D infinite plane can also be irregular (c.f.
Penrose) but I do not want to explore that.
(Penrose aperiodic tiling use 2 tiles, so you might provide 2 "objects"
and let the filling use them as needed... now, I do not know an easy
function to determine for a point on the plane which tile it would be
and what would be its orientation until you actually pave the plane till
the points... that can be a bit expensive in cpu, and unaffordable in
memory if caching that)
P.S: I hate overloaded modifiers on existing object, I tought your
repeat was a new CSG object, but if it must be inside a union, I do not
like it (what about using it inside an intersection... and other CSG ?
painfull)
intersection {
object { A }
union {
repeat {
object { B }
}
}
}
intersection {
object { A }
aleph3 {
object { B }
}
}
Or even
#declare clipka = aleph3 { ... };
and not
#declare clipka = union { repeat { ... } };
--
A: Because it messes up the order in which people normally read text.<br/>
Q: Why is it such a bad thing?<br/>
A: Top-posting.<br/>
Q: What is the most annoying thing on usenet and in e-mail?
Post a reply to this message
|
![](/i/fill.gif) |