POV-Ray : Newsgroups : povray.binaries.images : Seraglio (WIP) : Re: Seraglio (WIP) Server Time
2 Jul 2024 23:00:14 EDT (-0400)
  Re: Seraglio (WIP)  
From: Jérôme M. Berger
Date: 29 Aug 2015 17:15:32
Message: <55e220f4$1@news.povray.org>
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] freefr
http://jeberger.free.fr
Jabber: jeb### [at] jabberfr


Post a reply to this message


Attachments:
Download 'us-ascii' (1 KB)

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.