POV-Ray : Newsgroups : povray.advanced-users : Making Patterns with functions : Re: Making Patterns with functions Server Time
31 Aug 2024 22:19:23 EDT (-0400)
  Re: Making Patterns with functions  
From: jr
Date: 25 Aug 2024 02:50:00
Message: <web.66cad352d81b8479f5bfc9b06cde94f1@news.povray.org>
hi,

"Bald Eagle" <cre### [at] netscapenet> wrote:
> ...
> > Kinda looks like a "dog bone" wood patch that alternates in directions like a
> > checkerboard.
>
> Sometimes these things are a little easier to write using some helper functions.
>
> #declare S2P = function (V) {sin (tau*V/L)}
> #declare C2P = function (V) {cos (tau*V/L)}
> #declare T = 0.5;
> #declare N = 1;
> #declare Honeycomb = function (X, Y, Z) {pow(S2P(X)*C2P(Z) + S2P(Z) + C2P(X), N)
> - pow(T, N)}

plane with "Honeycomb" pattern, seen through "kaleidoscope".


regards, jr.


Post a reply to this message


Attachments:
Download 'ktpms.png' (440 KB)

Preview of image 'ktpms.png'
ktpms.png


 

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