NURBS学习第一天

曲线和表面的基础


隐式形式和参数形式(page1~5)

优缺点对比.


The power basis and Bezier forms are mathematically equivalent.
However, the Bezier method is superior to the power basis form for geometric modeling.


Power basis curve (page6)

C(u)=(x(u),y(u),z(u))=i=0naiui0u1


Bezier Curves(page9)

C(u)=i=0nBi,n(u)Pi0u1

Bi,n(u)=n!i!(ni)!ui(1u)ni

Bezier curves are invariant under the usual transformations such as rotations, translations, and scalings;that is, one applies the transformation to the curve by applying it to the control polygon Pi .
Bezier的算法算法实现(page20)

Bernstein(i,n,u,B)
{ /* Compute the value of a Bernstein polynomial.*/
/* Input: i,n,u */
/* Output: B */
for (j=O; j<=n; j++) /* compute the columns */
temp[j] = 0.0;
/* of Table 1.1 */
temp[n-i] = 1.0;
/* in a temporary array */
u1 = 1.0-u;
for (k=1; k<=n; k++)
for (j=n; j>=k; j--)
temp[j] = u1*temp[j] + u*temp[j-1];
B = temp[n];
}
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值