home *** CD-ROM | disk | FTP | other *** search
- {
- bark.cal - functional pattern for tree bark.
-
- Argument A1 is the bark size.
-
- 11/11/86
- }
-
- bark_pat = if(and(xbark, and(ybark, zbark)),
- noise3(5*Px/A1,5*Py/A1,5*Pz/A1)/4+.75,
- .1);
- xbark = if(.5774-abs(Nx),
- frac(Px/A1+noise3a(Px/A1,Py/A1,Pz/A1)*.8)-.2,
- 1);
- ybark = if(.5774-abs(Ny),
- frac(Py/A1+noise3b(Px/A1,Py/A1,Pz/A1)*.8)-.2,
- 1);
- zbark = if(.5774-abs(Nz),
- frac(Pz/A1+noise3c(Px/A1,Py/A1,Pz/A1)*.8)-.2,
- 1);
-