POV-Ray : Newsgroups : povray.general : Surface from XYZ data : Re: Surface from XYZ data Server Time
30 Jul 2024 22:27:37 EDT (-0400)
  Re: Surface from XYZ data  
From: Tor Olav Kristensen
Date: 15 Oct 2008 19:53:23
Message: <48f68273$1@news.povray.org>
Warp wrote:
>   Btw, it would be perfectly possible to create a POV-Ray macro which takes
> a 2-dimensional array of 3D points (ie. basically a grid of points) and
> which would then generate a smooth surface which goes through all these
> points, by creating a bicubic patch for each group of four adjacent points
> in the grid. The tangential control points can be easily calculated in such
> a way that the resulting group of bicubic patches form a smooth surface
> which goes through all the given points.
> 
>   I actually once started writing such a macro, but I never finished it.

I once made a set of macros that handles this.
Here are some images made with it:

http://home.online.no/~t-o-k/POV-Ray_Images/Bezier_Patches_Torus.jpg
http://home.online.no/~t-o-k/POV-Ray_Images/Bezier_Patches_UV-mapped.jpg
http://home.online.no/~t-o-k/POV-Ray_Images/Bezier_Patchwork.jpg
http://home.online.no/~t-o-k/POV-Ray_Images/Bezier_Patchwork_Ctrl_Grid.jpg
http://home.online.no/~t-o-k/POV-Ray_Images/Bezier_Patchwork_Top_View.jpg
http://home.online.no/~t-o-k/POV-Ray_Images/Bezier_Patches_Stitched.jpg
http://home.online.no/~t-o-k/POV-Ray_Images/Bezier_Patches_Stitched_.jpg

-- 
Tor Olav
http://subcube.com


Post a reply to this message

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