POV-Ray : Newsgroups : povray.advanced-users : Bicubic patch macro : Re: Bicubic patch macro Server Time
26 Sep 2024 17:45:34 EDT (-0400)
  Re: Bicubic patch macro  
From: Ron Parker
Date: 10 Feb 2002 21:04:05
Message: <slrna6e9kp.igb.ron.parker@fwi.com>
On Mon, 11 Feb 2002 02:12:26 +0100, Rune wrote:
> I wanted to create a bicubic patch surface using a *mesh*, not using the
> build-in bicubic patch object in POV-Ray. This is because I wanted to know
> how bicubic patches work at a low level.

As you know, one of the methods that already exists for bicubic patches 
turns them into meshes, so you could look at the source code for POV 
itself to see how this is done.

--
#macro R(L P)sphere{L __}cylinder{L P __}#end#macro P(_1)union{R(z+_ z)R(-z _-z)
R(_-z*3_+z)torus{1__ clipped_by{plane{_ 0}}}translate z+_1}#end#macro S(_)9-(_1-
_)*(_1-_)#end#macro Z(_1 _ __)union{P(_)P(-_)R(y-z-1_)translate.1*_1-y*8pigment{
rgb<S(7)S(5)S(3)>}}#if(_1)Z(_1-__,_,__)#end#end Z(10x*-2,.2)camera{rotate x*90}


Post a reply to this message

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