"Trevor G Quayle" <Tin### [at] hotmail com> wrote:
> "Trevor G Quayle" <Tin### [at] hotmail com> wrote:
> > Next step will be to make it as a
> > single pattern...
>
> //START
> #declare BSiz=<20,6,10>; //Size of box
> #declare TilSiz=<2,1>; //Size of tile (x,y)
> #declare Grt=0.1; //Width of grout
>
> #declare TilCol=rgb 0; //Tile colour
> #declare GrtCol=rgb <1,0,0>; // Grout colour
>
>
> #declare DimU=Grt/TilSiz.u/2; //Grout scaling x
> #declare DimV=Grt/TilSiz.v/2; //Grout scaling y
>
> #declare CMapVGrt=colour_map{[DimV GrtCol][DimV TilCol][1-DimV TilCol][1-DimV
> GrtCol]}
>
> #declare BoxUV= //Tile pattern for uv box
> pigment{
> uv_mapping
> gradient x
> pigment_map{
> [1/4 gradient x
> pigment_map{
> [ DimU GrtCol]
> [ DimU gradient y colour_map{CMapVGrt} frequency 3*BSiz.y/TilSiz.v]
> [1-DimU gradient y colour_map{CMapVGrt} frequency 3*BSiz.y/TilSiz.v]
> [1-DimU GrtCol]
> }
> frequency 4*BSiz.z/TilSiz.u
> ]
> [1/4 gradient x
> pigment_map{
> [ DimU GrtCol]
> [ DimU gradient y colour_map{CMapVGrt} frequency 3*BSiz.z/TilSiz.v]
> [1-DimU gradient y colour_map{CMapVGrt} frequency 3*BSiz.z/TilSiz.v]
> [1-DimU GrtCol]
> }
> frequency 4*BSiz.x/TilSiz.u
> ]
> [2/4 gradient x
> pigment_map{
> [ DimU GrtCol]
> [ DimU gradient y colour_map{CMapVGrt} frequency 3*BSiz.z/TilSiz.v]
> [1-DimU gradient y colour_map{CMapVGrt} frequency 3*BSiz.z/TilSiz.v]
> [1-DimU GrtCol]
> }
> frequency 4*BSiz.x/TilSiz.u
> ]
> [2/4 gradient x
> pigment_map{
> [ DimU GrtCol]
> [ DimU gradient y colour_map{CMapVGrt} frequency 3*BSiz.y/TilSiz.v]
> [1-DimU gradient y colour_map{CMapVGrt} frequency 3*BSiz.y/TilSiz.v]
> [1-DimU GrtCol]
> }
> frequency 4*BSiz.z/TilSiz.u
> ]
> [3/4 gradient x
> pigment_map{
> [ DimU GrtCol]
> [ DimU gradient y colour_map{CMapVGrt} frequency 3*BSiz.y/TilSiz.v]
> [1-DimU gradient y colour_map{CMapVGrt} frequency 3*BSiz.y/TilSiz.v]
> [1-DimU GrtCol]
> }
> frequency 4*BSiz.z/TilSiz.u
> ]
> [3/4 gradient x
> pigment_map{
> [ DimU GrtCol]
> [ DimU gradient y colour_map{CMapVGrt} frequency 3*BSiz.y/TilSiz.v]
> [1-DimU gradient y colour_map{CMapVGrt} frequency 3*BSiz.y/TilSiz.v]
> [1-DimU GrtCol]
> }
> frequency 4*BSiz.x/TilSiz.u
> ]
> }
> }
>
> box{0, BSiz pigment{BoxUV}}
> //END
almost.
which one runs down the inside-z-plane of CSG
?
Post a reply to this message
Attachments:
Download 'insidezplane.jpg' (74 KB)
Preview of image 'insidezplane.jpg'
![insidezplane.jpg](/povray.binaries.images/attachment/%3Cweb.494efc3a6655db18f798649f0%40news.povray.org%3E/insidezplane.jpg?preview=1)
|