Scroll to navigation

GLUNURBSSURFACE(3G) GLUNURBSSURFACE(3G)

̾??

gluNurbsSurface - NURBS ???̤η?????????????

????

void gluNurbsSurface( GLUnurbs* nurb,

	GLint sKnotCount,
	GLfloat* sKnots,
	GLint tKnotCount,
	GLfloat* tKnots,
	GLint sStride,
	GLint tStride,
	GLfloat* control,
	GLint sOrder,
	GLint tOrder,
	GLenum type )

??????

NURBS ???֥???????(gluNewNurbsRenderer ???Ȥäƺ???)?????ꤹ?롣
?ѥ??᡼?? u ?????ˤ??????Υåȿ??????ꤹ?롣
sKnotCount ???????????ꤹ?롣 ?????????ϡ??ѥ??᡼?? u ?????ˤĤ??ƥΥå??ͤ?ñĴ???äȤʤ??褦???¤֡?
?ѥ??᡼?? v ?????ˤ??????Υåȿ??????ꤹ?롣
sKnotCount ???????????ꤹ?롣 ?????????ϡ??ѥ??᡼?? v ?????ˤĤ??ƥΥå??ͤ?ñĴ???äȤʤ??褦???¤֡?
control ???Υѥ??᡼?? u ?????ˤ????롢 Ϣ³???????????δ֤Υ??ե??å?(ñ???٤???ư????????)?????ꤹ?롣
control ???Υѥ??᡼?? v ?????ˤ????롢 Ϣ³???????????δ֤Υ??ե??å?(ñ???٤???ư????????)?????ꤹ?롣
NURBS ???̤??????????ޤ??????????ꤹ?롣 ?ѥ??᡼?? u ?????? v ?????ˤ?????Ϣ³???????????δ֤? ???ե??åȤϡ?sStride ?? tStride ?ǻ??ꤹ?롣
?ѥ??᡼?? u ?????ˤ????? NURBS ???̤γ????????ꤹ?롣 ?????ϼ??????? 1 ?礭???Τǡ?u ?ˤĤ??? 3 ???ζ??̤? ???? 4 ?????ġ?
?ѥ??᡼?? v ?????ˤ????? NURBS ???̤γ????????ꤹ?롣 ?????ϼ??????? 1 ?礭???Τǡ?u ?ˤĤ??? 3 ???ζ??̤? ???? 4 ?????ġ?
???̤μ????????ꤹ?롣 type ?ϡ??????? 2 ??????ɾ????(GL_MAP2_VERTEX_3 ?? GL_MAP2_COLOR_4 ?ʤ?)?Ǥ????в??Ǥ??褤??

????

NURBS (Non-Uniform Rational B-Spline, ??????ͭ?? B-???ץ饤??)???̤? ?????򵭽Ҥ????ˤϡ?NURBS ???̤????????????? gluNurbsSurface ???Ȥ??? NURBS ???̤??????γ??Ϥ򼨤??ˤ? gluBeginSurface ???ޥ??ɤ? ?Ȥ??? NURBS ???̤ν??????򼨤??ˤ? gluEndSurface ???ޥ??ɤ??Ȥ??? gluNurbsSurface ?? NURBS ???̤????????????????ǻȤ????ȡ?

???ֺ?ɸ???ƥ?????????ɸ??????ɸ?ϡ? gluBeginSurface/gluEndSurface ?dz????줿??ʬ?? ???줾?????̤? gluNurbsSurface ??ɽ?????Ȥˤ??? ???̤??б??Ť??롣 ???????֡??ƥ????????ǡ????Τ??줾???ˤĤ??ơ??ҤȤĤ? gluBeginSurface/gluEndSurface ???Фδ֤? gluNurbsSurface ???????ʾ??Ƥ֤??ȤϤǤ??ʤ??? ???̤ΰ??֤򵭽Ҥ????ˤ? gluNurbsSurface ?????礦?ɰ??????? ?ƤӽФ??ʤ????Фʤ??ʤ?(type ?? GL_MAP2_VERTEX_3 ?ޤ??? GL_MAP2_VERTEX_4 ?Ǥ???)??

gluBeginTrim ?? gluEndTrim ?θƤӽФ??δ֤? gluNurbsCurve ???ޥ??ɤ? gluPwlCurve ???ޥ??ɤ? ?ƤӽФ????Ȥˤ??ꡢNURBS ???̤??ȥ??ह?뤳?Ȥ??Ǥ??롣

× (tKnotCount - tOrder) control points. u ?????? sKnotCount ?ġ? v ?????? tKnotCount ?ĤΥΥåȤ??????????ij??? sOrder ?????? tOrder ?????? NURBS ???̤? gluNurbsSurface ?ǵ??Ҥ????????ˤϡ? (sKnotCount - sOrder) × (tKnotCount - tOrder) ?Ĥ?????????ɬ?פǤ??롣

??????

?ʲ??Υ??ޥ??ɤ?ˡ???????????ƥ??????????????줿 NURBS ???̤? ?????????󥰤??롣 ?ƥ?????????ɸ??ˡ?????ޤ? NURBS ???̤Ǥ???:

gluBeginSurface(nobj);
gluNurbsSurface(nobj, ..., GL_MAP2_TEXTURE_COORD_2);
gluNurbsSurface(nobj, ..., GL_MAP2_NORMAL);
gluNurbsSurface(nobj, ..., GL_MAP2_VERTEX_4); gluEndSurface(nobj);

??Ϣ????

gluBeginSurface, gluBeginTrim, gluNewNurbsRenderer, gluNurbsCurve, gluPwlCurve