POV-Ray : Newsgroups : povray.newusers : How to use self defined functions as patterns? : Re: How to use self defined functions as patterns? Server Time
25 Apr 2024 10:50:02 EDT (-0400)
  Re: How to use self defined functions as patterns?  
From: clipka
Date: 2 Apr 2018 14:28:12
Message: <5ac2763c$1@news.povray.org>
Am 02.04.2018 um 15:04 schrieb rastertastic:

> Section "3.4.7.1.12 Function Pattern" explains that it's possible to define a
> function and use that as a pattern. The manual gives an example:
> #declare Foo = function { x + y + z}.
> 
> Ok but that function doesn't give values in the range [0,1], for example in the
> positive x,y plane Foo just keeps growing.

The function result is always "folded" into the [0..1] range; the exact
algorithm depends on the waveform (ramp_wave being the default).


Post a reply to this message

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