[Radiance-general] perforate.cal

atelier iebele abel atelier at iebele.nl
Wed Apr 13 19:30:42 CEST 2005


Hi Jack,

It works perfect! 
Great, thanks!

-Iebele

Jack de Valpine wrote:

> Hi Iebele,
>
> You could try the following additions to the cal file. I am not sure 
> if this will work as I am not in a location to try it out right now. 
> See inline below...
>
> -Jack
>
> atelier iebele abel wrote:
>
>> Hi group,
>>
>> I use a file called perforate.cal (from Georg).
>> Is it possible to change this file in such way that use it on 
>> surfaces which various normal directions ( not only through x, y or z 
>> plane) ?
>>
>>
>> -Iebele
>>
>>
>> perforate.cal:
>> {
>>        perforate.cal
>>        Perforation function for approximately horizontal sufaces,
>>        for use in a mixfunc. Foreground is solid, background the holes.
>>        Set background to empty for a true perforation, or to a different
>>        material for polka dots.
>>
>>        Relative hole size is determined by A1.
>>        Size of single circle is 1 - scale as required (eg. 0.05m).
>>
>>        x_hole cuts holes in x-direction (through the y-z plane)
>>        y_hole cuts holes in y-direction (through the x-z plane)
>>        z_hole cuts holes in z-direction (through the x-y plane)
>>
>>    Georg Mischler 30. 04. 1993
>> }
>>
>> `xn = mod(Px, 1) - 0.5;
>> `yn = mod(Py, 1) - 0.5;
>> `zn = mod(Pz, 1) - 0.5;
>
>
> {uv coordinate mapping}
> `un = mod(U, 1) - 0.5;
> `vn = mod(V, 1) - 0.5;
>
> {uv mesh coordinate mapping}
> `lun = mod(Lu, 1) - 0.5;
> `lvn = mod(Lv, 1) - 0.5;
>
>> `outofcirc(x, y, r) = if(sqrt(x*x + y*y) - r, 1, 0);
>>
>> z_hole = `outofcirc(`xn, `yn, A1);
>> x_hole = `outofcirc(`yn, `zn, A1);
>> y_hole = `outofcirc(`zn, `xn, A1);
>
>
> {uv coordinate mapping}
> uv_hole = `outofcirc(`un, `vn, A1);
>
> {uv mesh coordinate mapping}
> luv_hole = `outofcirc(`lun, `lvn, A1);
>
>
>>
>>
>>
>> _______________________________________________
>> Radiance-general mailing list
>> Radiance-general at radiance-online.org
>> http://www.radiance-online.org/mailman/listinfo/radiance-general
>>
>>
>



More information about the Radiance-general mailing list