POV-Ray : Newsgroups : povray.general : Nurbs ? : Re: Nurbs (Some math) Server Time
8 Aug 2024 04:04:00 EDT (-0400)
  Re: Nurbs (Some math)  
From: Remco Poelstra
Date: 3 Jul 2001 16:01:26
Message: <3B4241CB.2040906@home.nl>
James Tonkin wrote:

> 
> Well, it would help if I had of put the correct formula down in the first
> place... sorry bout that.  Here's the full derivation
> 
> (t + (1-t) ) ^3
> 
> = (t + (1-t)) * (t + (1-t)) * (t + (1-t))
> 
> = [ t*t + t*(1-t) + (1-t)*t + (1-t)*(1-t)] * [ t + (1-t)]
> 
> = [ t^2 + 2 * t * (1-t) + (1-t)^2] * [t + (1-t)]
> 
> = ( t^2 * t) + (2 * t * (1-t) * t) + ( (1-t)^2 * t) + (t^2 * (1-t)) 
> 	+ (2 * t * (1-t) * (1-t) ) + ( (1-t)^2 * (1-t))
> 
> = t^3 + ( 2 * t^2 * (1-t) ) + (t * (1-t)^2) + (t^2 * (1-t)) 
> 	+ ( 2 * t * (1-t)^2) + (1-t)^3
> 
> = t^3 + (3 * t^2 * (1-t)) + (3 * t * (1-t)^2) + (1-t)^3
> 
> So the 4 terms in the last line correspond to the 4 blending functions.
> 


Thanks, exactly what I wanted to know.

Remco Poelstra


Post a reply to this message

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