POV-Ray : Newsgroups : povray.general : Nurbs ? Server Time
8 Aug 2024 08:17:21 EDT (-0400)
  Nurbs ? (Message 41 to 41 of 41)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Sander
Subject: Re: Nurbs (Some math)
Date: 3 Jul 2001 16:37:43
Message: <MPG.15ac4bb77030a8b19897ee@NEWS.POVRAY.ORG>
In article <3b40f28b$1@news.povray.org>, James Tonkin says...
> Remco Poelstra  <rjp### [at] homenl> wrote:
> >James Tonkin wrote:
> 
> [a bunch of stuff about the math behind bicubic patches]
> 
> >Could you please tell me what separation of a formule is? i.e., how do 
> >you get the blending functions from ( t*(1-t))^3?
> 
> 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.
> 
> Hope that helps,
> Jamie
> 
Not to criticize the way you calculate the result, starting from 
(t + (1-t) ) ^3, but in school we went from (a+b)^3 straight to
a^3 + 3*a^2*b + 3*a*b^2 + b^3.... :)

-- 
Regards,  Sander


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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