📄 fglmap2.ps
字号:
3362(contiguous)X3743(memory)X816 5642(locations.)N1145(The)X1290(initial)X1496(value)X1690(of)X2 f1777(vstride)X1 f2015(is)X2088(0.)X266 6144(Page)N442(1)X3577(July)X3730(22,)X3850(1997)X2 p%%Page: 2 210 s 0 xH 0 xS 1 f10 f0 96(h)N24(hhh)X4176(h)X4200(hhh)X9 s1 f266 480(F)N268(FG)X310(GL)X364(LM)X410(MA)X476(AP)X530(P2)X572(2)X614(\()X616(\()X652(\))X654(\))X1885(U)X1887(UN)X1941(NI)X1995(IX)X2021(X)X2093(S)X2095(Sy)X2137(ys)X2175(st)X2205(te)X2227(em)X2261(m)X2337(V)X2339(V)X3598(F)X3600(FG)X3642(GL)X3696(LM)X3742(MA)X3808(AP)X3862(P2)X3904(2)X3946(\()X3948(\()X3984(\))X3986(\))X2 f10 s554 864(vorder)N1 f816(Speci\256es)X1134(the)X1262(dimension)X1625(of)X1722(the)X1850(control)X2107(point)X2301(array)X2497(in)X2589(the)X2717($v$)X2867(axis.)X3066(Must)X3260(be)X3366(positive.)X3669(The)X3824(initial)X816 960(value)N1010(is)X1083(1.)X2 f554 1094(points)N1 f816(Speci\256es)X1125(a)X1181(pointer)X1428(to)X1510(the)X1628(array)X1814(of)X1901(control)X2148(points.)X9 s266 1228(D)N268(DE)X322(ES)X368(SC)X410(CR)X460(RI)X510(IP)X536(PT)X578(TI)X624(IO)X650(ON)X704(N)X10 s554 1324(Evaluators)N921(provide)X1190(a)X1250(way)X1408(to)X1494(use)X1625(polynomial)X2013(or)X2104(rational)X2373(polynomial)X2761(mapping)X3066(to)X3153(produce)X3437(vertices,)X3732(normals,)X554 1420(texture)N804(coordinates,)X1221(and)X1364(colors.)X1627(The)X1779(values)X2011(produced)X2336(by)X2442(an)X2544(evaluator)X2869(are)X2994(sent)X3149(on)X3255(to)X3343(further)X3588(stages)X3810(of)X3903(GL)X554 1516(processing)N929(just)X1076(as)X1175(if)X1256(they)X1426(had)X1575(been)X1760(presented)X2101(using)X3 f2307(fglVertex)X1 f2629(,)X3 f2682(fglNormal)X1 f3034(,)X3 f3087(fglTexCoord)X1 f3523(,)X3576(and)X3 f3725(fglColor)X1 f554 1612(commands,)N941(except)X1171(that)X1311(the)X1429(generated)X1762(values)X1987(do)X2087(not)X2209(update)X2443(the)X2561(current)X2809(normal,)X3076(texture)X3319(coordinates,)X3729(or)X3816(color.)X554 1746(All)N680(polynomial)X1068(or)X1159(rational)X1428(polynomial)X1816(splines)X2062(of)X2154(any)X2295(degree)X2535(\(up)X2667(to)X2754(the)X2877(maximum)X3226(degree)X3466(supported)X3807(by)X3912(the)X554 1842(GL)N682(implementation\))X1232(can)X1365(be)X1462(described)X1790(using)X1983(evaluators.)X2373(These)X2585(include)X2841(almost)X3074(all)X3174(surfaces)X3458(used)X3625(in)X3707(computer)X554 1938(graphics,)N866(including)X1188(B-spline)X1479(surfaces,)X1783(NURBS)X2069(surfaces,)X2373(Bezier)X2603(surfaces,)X2907(and)X3043(so)X3134(on.)X554 2072(Evaluators)N917(de\256ne)X1133(surfaces)X1417(based)X1620(on)X1720(bivariate)X2021(Bernstein)X2348(polynomials.)X2803(De\256ne)X3037($p)X3137(\()X3184(u)X3244(hat)X3362(,)X3402(v)X3462(hat)X3580(\))X3627($)X3687(as)X554 2264(p)N614(\()X661(u)X721(hat)X839(,)X879(v)X939(hat)X1057(\303\))X1131(\304\304=\304\304)X1304(up)X1404(10)X1504({sum)X1695(from)X1871(i=0)X1998(to)X2080(n)X2140(sum)X2293(from)X2469(j=0)X2596(to)X2678(m})X2798(B)X2871(sub)X3002(i)X3044(sup)X3175(n)X3235(\()X3282(u)X3342(hat)X3460(\303\))X3534(B)X3607(sub)X3738(j)X3780(sup)X3911(m)X3993(\()X4040(v)X4100(hat)X4218(\303\))X4292(R)X4365(sub)X4496(ij)X554 2494(where)N771($R)X884(sub)X1015(ij$)X1119(is)X1192(a)X1248(control)X1495(point,)X1699($B)X1812(sub)X1943(i)X1985(sup)X2116(n)X2176(\()X2223(u)X2283(hat)X2401(\303\)$)X2515(is)X2588(the)X2706($i$th)X2890(Bernstein)X3217(polynomial)X3601(of)X3688(degree)X554 2590($n$)N694(\()X2 f721(uorder)X1 f959(=)X1024($n)X1124(+)X1189(1$\))X554 2782(B)N627(sub)X758(i)X800(sup)X931(n)X991(\()X1038(u)X1098(hat)X1216(\303\))X1290(\304\304=\304\304)X1463(left)X1590(\()X1637(down)X1835(20)X1935({cpile)X2149({)X2207(n)X2267(above)X2479(i)X2521(}})X2617(\304\304)X2691(right)X2862(\))X2909(u)X2969(hat)X3087(sup)X3218(i)X3260(\()X3307(1)X3367(-)X3414(u)X3474(hat)X3592(\303\))X3666(sup)X3797({)X3855(n)X3915(-)X3962(i)X4004(})X554 2974(and)N690($B)X803(sub)X934(j)X976(sup)X1107(m)X1189(\()X1236(v)X1296(hat)X1414(\303\)$)X1528(is)X1601(the)X1719($j$th)X1903(Bernstein)X2230(polynomial)X2614(of)X2701(degree)X2936($m$)X3098(\()X2 f3125(vorder)X1 f3359(=)X3424($m)X3546(+)X3611(1$\))X554 3166(B)N627(sub)X758(j)X800(sup)X931(m)X1013(\()X1060(v)X1120(hat)X1238(\303\))X1312(\304\304=\304\304)X1485(left)X1612(\()X1659(down)X1857(20)X1957({cpile)X2171({)X2229(m)X2311(above)X2523(j)X2565(}})X2661(\304\304)X2735(right)X2906(\))X2953(v)X3013(hat)X3131(sup)X3262(j)X3304(\()X3351(1)X3411(-)X3458(v)X3518(hat)X3636(\303\))X3710(sup)X3841({)X3899(m)X3981(-)X4028(j)X4070(})X554 3358(Recall)N779(that)X992 3454($0)N1092(sup)X1223(0)X1283(\304==\304)X1447(1)X1507($)X1567(and)X1703($)X1763(left)X1890(\()X1937(down)X2135(20)X2235({cpile)X2449({)X2507(n)X2567(above)X2779(\3040)X2866(}})X2962(\304\304)X3036(right)X3207(\))X3254(\304\304==\304\304)X3472(1)X3532($)X3 f554 3646(fglMap2)N1 f865(is)X940(used)X1109(to)X1193(de\256ne)X1412(the)X1533(basis)X1716(and)X1855(to)X1940(specify)X2195(what)X2374(kind)X2539(of)X2629(values)X2857(are)X2979(produced.)X3341(Once)X3534(de\256ned,)X3813(a)X3872(map)X554 3742(can)N699(be)X808(enabled)X1091(and)X1240(disabled)X1540(by)X1653(calling)X3 f1904(fglEnable)X1 f2265(and)X3 f2414(fglDisable)X1 f2789(with)X2964(the)X3095(map)X3266(name,)X3493(one)X3642(of)X3742(the)X3872(nine)X554 3838(prede\256ned)N925(values)X1162(for)X2 f1289(target)X1 f1480(,)X1533(described)X1874(below.)X2143(When)X3 f2368(fglEvalCoord2)X1 f2903(presents)X3199(values)X3437($u$)X3590(and)X3739($v$,)X3912(the)X554 3934(bivariate)N855(Bernstein)X1182(polynomials)X1597(are)X1716(evaluated)X2044(using)X2237($u)X2337(hat$)X2495(and)X2631($v)X2731(hat$,)X2909(where)X1539 4126($u)N1639(hat)X1757(\304\304=\304\304)X1930({u)X2028(\304-\304)X2129("u1"})X2333(over)X2496({"u2")X2700(\304-\304)X2801("u1"}$)X1539 4318($v)N1639(hat)X1757(\304\304=\304\304)X1930({v)X2028(\304-\304)X2129("v1"})X2333(over)X2496({"v2")X2700(\304-\304)X2801("v1"}$)X2 f554 4510(target)N1 f765(is)X838(a)X894(symbolic)X1207(constant)X1494(that)X1634(indicates)X1939(what)X2115(kind)X2277(of)X2364(control)X2611(points)X2826(are)X2945(provided)X3250(in)X2 f3332(points)X1 f3527(,)X3567(and)X3704(what)X3881(out-)X554 4606(put)N676(is)X749(generated)X1082(when)X1276(the)X1394(map)X1552(is)X1625(evaluated.)X1993(It)X2062(can)X2194(assume)X2450(one)X2586(of)X2673(nine)X2831(prede\256ned)X3190(values:)X3 f554 4740(GL_MAP2_VERTEX_3)N1 f1554(Each)X1740(control)X1992(point)X2181(is)X2260(three)X2447(\257oating-point)X2908(values)X3139(representing)X3562($x$,)X3728($y$,)X3894(and)X1554 4836($z$.)N1762(Internal)X3 f2064(fglVertex3)X1 f2478(commands)X2877(are)X3028(generated)X3393(when)X3619(the)X3768(map)X3957(is)X1554 4932(evaluated.)N3 f554 5066(GL_MAP2_VERTEX_4)N1 f1554(Each)X1741(control)X1994(point)X2184(is)X2263(four)X2423(\257oating-point)X2884(values)X3116(representing)X3540($x$,)X3707($y$,)X3874($z$,)X1554 5162(and)N1703($w$.)X1914(Internal)X3 f2197(fglVertex4)X1 f2592(commands)X2972(are)X3104(generated)X3450(when)X3657(the)X3787(map)X3957(is)X1554 5258(evaluated.)N3 f554 5392(GL_MAP2_INDEX)N1 f1554(Each)X1756(control)X2024(point)X2229(is)X2324(a)X2402(single)X2635(\257oating-point)X3112(value)X3328(representing)X3767(a)X3845(color)X1554 5488(index.)N1826(Internal)X3 f2130(fglIndex)X1 f2468(commands)X2869(are)X3022(generated)X3388(when)X3615(the)X3766(map)X3957(is)X1554 5584(evaluated)N1884(but)X2008(the)X2128(current)X2379(index)X2580(is)X2656(not)X2781(updated)X3058(with)X3223(the)X3344(value)X3541(of)X3631(these)X3 f3819(fglIn-)X1554 5680(dex)N1 f1694(commands.)X266 6144(July)N419(22,)X539(1997)X3794(Page)X3970(2)X3 p%%Page: 3 310 s 0 xH 0 xS 1 f10 f0 96(h)N24(hhh)X4176(h)X4200(hhh)X9 s1 f266 480(F)N268(FG)X310(GL)X364(LM)X410(MA)X476(AP)X530(P2)X572(2)X614(\()X616(\()X652(\))X654(\))X1885(U)X1887(UN)X1941(NI)X1995(IX)X2021(X)X2093(S)X2095(Sy)X2137(ys)X2175(st)X2205(te)X2227(em)X2261(m)X2337(V)X2339(V)X3598(F)X3600(FG)X3642(GL)X3696(LM)X3742(MA)X3808(AP)X3862(P2)X3904(2)X3946(\()X3948(\()X3984(\))X3986(\))X3 f10 s554 864(GL_MAP2_COLOR_4)N1 f1554(Each)X1735(control)X1982(point)X2166(is)X2239(four)X2393(\257oating-point)X2848(values)X3073(representing)X3490(red,)X3633(green,)X3852(blue,)X1554 960(and)N1703(alpha.)X1950(Internal)X3 f2233(fglColor4)X1 f2591(commands)X2971(are)X3103(generated)X3449(when)X3656(the)X3787(map)X3957(is)X1554 1056(evaluated)N1903(but)X2046(the)X2185(current)X2454(color)X2661(is)X2756(not)X2900(updated)X3196(with)X3380(the)X3520(value)X3736(of)X3845(these)X3 f1554 1152(fglColor4)N1 f1899(commands.)X3 f554 1286(GL_MAP2_NORMAL)N1 f1554(Each)X1742(control)X1996(point)X2187(is)X2267(three)X2455(\257oating-point)X
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -