POV-Ray : Newsgroups : povray.general : Extruding a function... : Re: Extruding a function... Server Time
28 Jul 2024 22:28:25 EDT (-0400)
  Re: Extruding a function...  
From: Samuel Benge
Date: 19 Jun 2007 10:23:49
Message: <4677e6f5$1@news.povray.org>
Simon wrote:
> If I have:
> f(x) = sin(2*pi*x)
> 
> how do I get that into something like corrugated roof?

Simon,

The cross section of a corrugated roof will be 2D, so you will need data
for at least two axes when making your roof. Here is an example:

function{
  y               // Makes a y-facing surface.
  +cos(2*pi*x)/4  // Distorts surface by adding one x-oriented wave
                  // per unit, scaled by 0.25.
}

~Sam


Post a reply to this message

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