|
![](/i/fill.gif) |
On 08/29/2015 06:35 PM, And wrote:
> And the third is the 100x100 tilings, takes 2 minutes and 4 seconds to
render.
> Every object in it is intersection with the bounding cylinder first, th
en union.
>
>
> #declare one_piece =
> union{
> box{
> <0.005, 0.005, 0>, <0.395, 0.395, 0.01>
> }
> cylinder{
> <0.02, 0, 0>, <0.38, 0, 0>, 1
> scale <1,0.18,0.02>
> translate <0, 0.2, 0.01>
> }
> pigment{
> rgb<0.4,0.6,0.6>
> }
> }
>
> #declare the_tiling =
> union{
> #for(i, 0, 99)
> #for(j, 0, 99)
> intersection{
> object{
> one_piece
> translate <i*0.4, j*0.4, 0>
> }
> cylinder{
> <20,20,0>,<20,20,1>,19
> }
Try to add these lines here:
bounded_by { box { min_extent (one_piece)+<i*0.4, j*0.4, 0>,
max_extent (one_piece)+<i*0.4, j*0.4, 0> } }
> cutaway_textures
> }
> #end
> #end
> }
>
>
> the_tiling
>
--
mailto:jeb### [at] free fr
http://jeberger.free.fr
Jabber: jeb### [at] jabber fr
Post a reply to this message
Attachments:
Download 'us-ascii' (1 KB)
|
![](/i/fill.gif) |