POV-Ray : Newsgroups : povray.general : Math functions in POV : Re: Math functions in POV Server Time
14 Aug 2024 01:17:51 EDT (-0400)
  Re: Math functions in POV  
From: Thomas Willhalm
Date: 28 Apr 1998 03:35:49
Message: <qqm4szel7oq.fsf@uni-konstanz.de>
Daniel Sobral <l45### [at] alfaistutlpt> writes:
> 
> Does anyone knows how to make nice 3D graphics of mathematical
> functions of 2 variables? Ex: f(x,y) = sin(x^2 + y^2)
> I have seen the tutorials, but the results I got were awfull

IMO you have mainly three possibilities:

1. In case of an easy function you can try the built-in objects poly, cubic
and quartic (section 7.5.4.2 of the docs).

2. For more complicated functions like sin(x^2 + y^2) you can approximate
the function with objects like spheres, cylinders, (smoothed) triangles or
even bicubic patches.

3. You get the "isosurface patch" for POV-Ray. It is availible at
http://www.public.usit.net/rsuzuki/e/povray/iso/index.html
Among other interesting features this patch includes arbitrary parametric 
surfaces. For an explanation follow the link to the site
http://atrey.karlin.mff.cuni.cz/~0rfelyus/povray.html

I hope this helps
ThW

-- 
Tho### [at] uni-konstanzde
http://www.informatik.uni-konstanz.de/~willhalm/
Tschieses lavs ju


Post a reply to this message

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