POV-Ray : Newsgroups : povray.text.scene-files : Bicubic Patch Macro (Macro Code) : Re: Bicubic Patch Macro (Macro Code) Server Time
3 Jul 2024 01:16:29 EDT (-0400)
  Re: Bicubic Patch Macro (Macro Code)  
From: Dave Dunn
Date: 7 Feb 2002 17:54:02
Message: <3C6305EB.4C87BD78@aol.com>
/*Here is the "modeling enviornment for the bicubic patch modeler. To get a
"fresh" square patch, copy the array from the patcher.mcr file. */

#include "colors.inc"
#include "textures.inc"
#include "patcher.mcr"

camera{ location<0,0,-30> look_at<0,0,0>}

light_source{ <-10,60,-130> White}

#declare Points = array [16]
{
//Bottom Row
<-1.5,-7.5,0>, //0-2 Blue Corner Lower Left
<-.5,-12.5,0>, //3-5 Yellow Lower Mid-Left
<.5,-12.5,0>,  //6-8 Yellow Lower Mid-Right
<1.5,-7.5,0>, //9-11 Blue Corner Lower Right
//Second Row
<-7.5,-2.5,0>,  // 12-14 Yellow Left Lower Mid
<-2.5,-2.5,-5>, //15-17 Green Center LL
<2.5,-2.5,-5>,  //18-20 Green Center LR
<7.5,-2.5,0>,  //21-23 Yellow Right Lower Mid
//Third Row
<-7.5,2.5,0>, //24-26 Yellow Left Upper Mid
<-2.5,2.5,-5>, //27-29 Green Center UL
<2.5,2.5,-5>,  //30-32 Green Center UR
<7.5,2.5,0>,  //33-35 Yellow Right Upper Mid
//Top Row
<-5,7.5,0>, //36-38 Blue corner Upper Left
<-2.5,12,0>, //39-41 Yellow Upper Mid-Left
<2.5,12,0>, //42-44 Yellow Upper Mid-Right
<5,7.5,0> //45-47 Blue Corner Upper Right
}

object {
Patcher(1,1,1,White,1)
}


Post a reply to this message

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