Qhov txawv ntawm Bezier Curve thiab B-Spline Curve

Qhov txawv ntawm Bezier Curve thiab B-Spline Curve
Qhov txawv ntawm Bezier Curve thiab B-Spline Curve

Video: Qhov txawv ntawm Bezier Curve thiab B-Spline Curve

Video: Qhov txawv ntawm Bezier Curve thiab B-Spline Curve
Video: Qhov Sib Txawv Ntawm Allergy, Flu & Coronavirus Yog Dab Tsi 2024, Hlis ntuj nqeg
Anonim

Bezier Curve vs B-Spline Curve

Nyob rau hauv kev txheeb xyuas tus lej hauv lej thiab hauv kev kos duab hauv computer, ntau hom nkhaus tau txais kev pab. Bezier Curve thiab B-Spline Curve yog ob ntawm cov qauv nrov rau kev tsom xam. Muaj ntau qhov sib xws ntawm ob hom kev nkhaus thiab cov kws tshaj lij hu ua B-Spline nkhaus los ua ib qho kev hloov pauv ntawm Bezier nkhaus. Txawm li cas los xij, tseem muaj ntau qhov sib txawv uas yuav tau tham hauv kab lus no kom tau txais txiaj ntsig ntawm cov neeg nyeem.

Bezier Curve yog dab tsi?

Bezier curves yog parametric curves siv ntau zaus hauv kev ua qauv ntawm qhov chaw du hauv computer graphics thiab ntau lwm yam. Cov nkhaus no tuaj yeem ntsuas qhov tsis muaj sijhawm. Txuas Bezier nkhaus muaj txoj hauv kev uas yog kev sib txuas ua ke uas muaj kev nkag siab zoo thiab tuaj yeem hloov kho. Cov cuab yeej no kuj yog siv los tswj cov lus tsa suab hauv cov yeeb yaj kiab animation. Thaum cov programmers ntawm cov animations tham txog physics koom nrog, lawv yog qhov tseem ceeb tham txog cov Bezier nkhaus. Bezier nkhaus yog thawj zaug tsim los ntawm Paul de Castlejau siv Castlejau's algorithm, uas yog suav tias yog txoj hauv kev ruaj khov los txhim kho cov nkhaus. Txawm li cas los xij, cov nkhaus no tau muaj npe nrov hauv xyoo 1962 thaum Fabkis tus tsim Pierre Bezier siv lawv los tsim tsheb.

Cov kab nkhaus Bezier nrov tshaj plaws yog plaub thiab lub voos xwmfab hauv qhov xwm txheej raws li cov kev nkhaus siab dua yog kim los kos thiab ntsuas. Ib qho piv txwv ntawm qhov sib npaug ntawm Bezier nkhaus uas muaj ob lub ntsiab lus (linear nkhaus) yog raws li hauv qab no

B(t)=P0 + t(P1 – P0)=(1 – t)P0 + tP1, tε[0, 1]

B-Spline Curve yog dab tsi?

B-Spline nkhaus yog suav tias yog kev nthuav dav ntawm Bezier nkhaus thiab xws li sib koom ntau qhov sib xws nrog nws. Txawm li cas los xij, lawv muaj cov khoom xav tau ntau dua li Bezier nkhaus. B-Spline curves xav tau cov ntaub ntawv ntau ntxiv xws li degree ntawm qhov nkhaus thiab lub pob qhov rooj, thiab feem ntau koom nrog txoj kev xav ntau dua li Bezier nkhaus. Txawm li cas los xij, lawv muaj ntau qhov zoo uas tau teeb tsa qhov tsis txaus no. Ua ntej, B-Spline nkhaus tuaj yeem yog Bezier nkhaus thaum twg tus programmer xav tau. Ntxiv B-Spline nkhaus muaj kev tswj thiab yoog raws ntau dua Bezier nkhaus. Nws muaj peev xwm siv cov kab nkhaus qis dua thiab tseem tuav tau ntau lub ntsiab lus tswj. B-Spline, txawm hais tias muaj txiaj ntsig zoo dua tseem yog cov kab nkhaus polynomial thiab tsis tuaj yeem sawv cev cov nkhaus yooj yim xws li lub voj voog thiab ellipses. Rau cov duab no, kev nthuav dav ntxiv ntawm B-Spline curves hu ua NURBS yog siv.

Bezier vs B-Spline nkhaus

• Ob qho tib si Bezier thiab B-Spline nkhaus yog siv los kos duab thiab ntsuas cov nkhaus nkhaus, tshwj xeeb tshaj yog hauv computer graphics thiab animations.

• B-Spline raug suav hais tias yog qhov tshwj xeeb ntawm Bezier nkhaus

• B-Spline muab kev tswj hwm thiab hloov pauv ntau dua li Bezier nkhaus

Pom zoo: