POV-Ray : Newsgroups : povray.general : Extruding a function... : Re: Extruding a function... Server Time
28 Jul 2024 22:15:48 EDT (-0400)
  Re: Extruding a function...  
From: Simon
Date: 19 Jun 2007 11:40:58
Message: <4677f90a$1@news.povray.org>
Thanks very much for that :) That actually makes sense :)

I'd gone off on a tangent and actually came up witha  macro to make a mesh 
froma  given function - I'll compare the 2 to match parse times/render 
times. Also, I expect the isosurface will have a higher quality...

Again, thank you!
~S

"Samuel Benge" <stb### [at] THIShotmailcom> wrote in message 
news:4677e60d$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(x*pi*2)/4  // distorts surface by adding one x-oriented wave
> // per unit, scaled by 0.125
> }
>
> ~Sam


Post a reply to this message

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