'\" e '\"! eqn | mmdoc '\"macro stdmacro .ds Vn Version 1.2 .ds Dt 6 March 1997 .ds Re Release 1.2.0 .ds Dp May 02 11:53 .ds Dm 37 nurbscurv .ds Xs 25594 5 nurbscurve.gl .\" .\" Copyright (c) 2001 The X Japanese Documentation Project. .\" .\" Permission is hereby granted, free of charge, to any person obtaining a .\" copy of this software and associated documentation files (the .\" "Software"), to deal in the Software without restriction, including .\" without limitation the rights to use, copy, modify, merge, publish, dis- .\" tribute, sublicense, and/or sell copies of the Software, and to permit .\" persons to whom the Software is furnished to do so, subject to the fol- .\" lowing conditions: .\" .\" The above copyright notice and this permission notice shall be included .\" in all copies or substantial portions of the Software. .\" .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS .\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL- .\" ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT .\" SHALL THE X JAPANESE DOCUMENTATION PROJECT BE LIABLE FOR ANY CLAIM, .\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR .\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR .\" THE USE OR OTHER DEALINGS IN THE SOFTWARE. .\" .\" Except as contained in this notice, the name of The X Japanese .\" Documentation Project shall not be used in advertising or otherwise to .\" promote the sale, use or other dealings in this Software without prior .\" written authorization from The X Japanese Documentation Project. .\" .\" X Window System is a trademark of The Open Group. .\" .\" Translated Thu Sep 13 12:46:23 JST 2001 .\" by FUJIWARA Teruyoshi .\" .TH GLUNURBSCURVE 3G .SH 名前 .B "gluNurbsCurve .\"0 \- define the shape of a NURBS curve \- NURBS 曲線の形状を定義する .SH 書式 void \f3gluNurbsCurve\fP( GLUnurbs* \fInurb\fP, .nf .ta \w'\f3void \fPgluNurbsCurve( 'u GLint \fIknotCount\fP, GLfloat \fI*knots\fP, GLint \fIstride\fP, GLfloat \fI*control\fP, GLint \fIorder\fP, GLenum \fItype\fP ) .fi .EQ delim $$ .EN .SH 引き数 .TP \w'\fIknotCount\fP\ \ 'u \f2nurb\fP .\"0 Specifies the NURBS object (created with \%\f3gluNewNurbsRenderer\fP). NURBS オブジェクト(\%\f3gluNewNurbsRenderer\fP を使って作る)を指定する。 .TP \f2knotCount\fP .\"0 Specifies the number of knots in \f2knots\fP. \f2knots\fP に含まれるノット数を指定する。 .\"0 \f2knotCount\fP equals the number of control points plus the order. \f2knotCount\fP は制御点の数に次数を加えた数に等しい。 .TP \f2knots\fP .\"0 Specifies an array of \f2knotCount\fP nondecreasing knot values. ノット値が単調増加となるように並べた \f2knotCount\fP の配列を指定する。 .TP \f2stride\fP .\"0 Specifies the offset (as a number of single-precision floating-point values) .\"0 between successive curve control points. 連続する曲線の制御点どうしのオフセットを指定する( 単精度の浮動小数点値として指定する)。 .TP \f2control\fP .\"0 Specifies a pointer to an array of control points. The coordinates must .\"0 agree with \f2type\fP, specified below. 制御点の配列を指すポインタを指定する。 座標系は後述の \f2type\fP を満たさなければならない。 .TP \f2order\fP .\"0 Specifies the order of the NURBS curve. \f2order\fP equals degree + 1, hence .\"0 a cubic curve has an order of 4. NURBS 曲線の階数を指定する。 \f2order\fP は度数 + 1 に等しいので、三次曲線の階数は 4 である。 .TP \f2type\fP .\"0 Specifies the type of the curve. If this curve is defined within a .\"0 \%\f3gluBeginCurve\fP/\%\f3gluEndCurve\fP pair, then .\"0 the type can be any of the valid .\"0 one-dimensional evaluator types (such as \%\f3GL_MAP1_VERTEX_3\fP or .\"0 \%\f3GL_MAP1_COLOR_4\fP). Between a \%\f3gluBeginTrim\fP/\%\f3gluEndTrim\fP pair, .\"0 the only valid types are \%\f3GLU_MAP1_TRIM_2\fP and \%\f3GLU_MAP1_TRIM_3\fP. 曲線の型を指定する。 この曲線が \%\f3gluBeginCurve\fP と \%\f3gluEndCurve\fP の対で括られて いる場合は、曲線の型は次数が 1 の評価処理のいずれでもよい (\%\f3GL_MAP1_VERTEX_3\fP, \%\f3GL_MAP1_COLOR_4\fP など)。 \%\f3gluBeginTrim\fP と \%\f3gluEndTrim\fP の対で括られている場合は、 許される型は \%\f3GLU_MAP1_TRIM_2\fP と \%\f3GLU_MAP1_TRIM_3\fP の どちらかだけである。 .SH 説明 .\"0 Use \%\f3gluNurbsCurve\fP to describe a NURBS curve. \%\f3gluNurbsCurve\fP は NURBS 曲線を記述するために使う。 .P .\"0 When \%\f3gluNurbsCurve\fP appears between a \%\f3gluBeginCurve\fP/\%\f3gluEndCurve\fP pair, it is .\"0 used to describe a curve to be rendered. \%\f3gluNurbsCurve\fP が \%\f3gluBeginCurve\fP/\%\f3gluEndCurve\fP の 対の間に現れたとき、この関数はレンダリングする曲線を記述するために 使われる。 .\"0 Positional, texture, and color coordinates are associated .\"0 by presenting each as a separate \%\f3gluNurbsCurve\fP between a .\"0 \%\f3gluBeginCurve\fP/\%\f3gluEndCurve\fP pair. No more than .\"0 one call to \%\f3gluNurbsCurve\fP for each of color, position, and texture .\"0 data can be made within a single \%\f3gluBeginCurve\fP/\%\f3gluEndCurve\fP .\"0 pair. Exactly one call must be made to describe the position of the .\"0 curve (a \f2type\fP of \%\f3GL_MAP1_VERTEX_3\fP or \%\f3GL_MAP1_VERTEX_4\fP). 位置座標系・テクスチャ座標系・色座標系は、 一組の \%\f3gluBeginCurve\fP/\%\f3gluEndCurve\fP の間で 別々に \%\f3gluNurbsCurve\fP を記述することで対応を取る。 一組の \%\f3gluBeginCurve\fP/\%\f3gluEndCurve\fP の間で 色、位置、テクスチャのいずれかだけについて \%\f3gluNurbsCurve\fP を呼び出すこともできる。 曲線の位置を記述するための呼び出しはひとつだけ行わなければならない。 .P .\"0 When \%\f3gluNurbsCurve\fP appears between a \%\f3gluBeginTrim\fP/\%\f3gluEndTrim\fP pair, it is .\"0 used to describe a trimming curve on a NURBS surface. If \f2type\fP is .\"0 \%\f3GLU_MAP1_TRIM_2\fP, then it describes a curve in two-dimensional (\f2u\fP .\"0 and \f2v\fP) .\"0 parameter space. If it is \%\f3GLU_MAP1_TRIM_3\fP, then it describes a .\"0 curve in two-dimensional homogeneous (\f2u\fP, \f2v\fP, and \f2w\fP) .\"0 parameter space. \%\f3gluNurbsCurve\fP が \%\f3gluBeginTrim\fP と \%\f3gluEndTrim\fP の 対の間に現れる場合、この呼び出しは NURBS 曲面上のトリミング曲線を記述 するために使われる。 \f2type\fP が \%\f3GLU_MAP1_TRIM_2\fP ならば、この呼び出しは 2 次のパラメータ空間(\f2u\fP と \f2v\fP)上の曲線を記述する。 \f2type\fP が \%\f3GLU_MAP1_TRIM_3\fP ならば、この呼び出しは 2 次の同次パラメータ空間(\f2u\fP, \f2v\fP, \f2w\fP)上の曲線を記述する。 .\"0 See the \%\f3gluBeginTrim\fP reference page for more discussion about trimming .\"0 curves. トリミング曲線の詳しい説明については \%\f3gluBeginTrim\fP の項目を参照 すること。 .SH 使用例 .\"0 The following commands render a textured NURBS curve with normals: 次のコマンドはテクスチャ処理され、法線を持つ NURBS 曲線を レンダリングする。 .sp .Ex gluBeginCurve(nobj); gluNurbsCurve(nobj, ..., GL_MAP1_TEXTURE_COORD_2); gluNurbsCurve(nobj, ..., GL_MAP1_NORMAL); gluNurbsCurve(nobj, ..., GL_MAP1_VERTEX_4); gluEndCurve(nobj); .Ee .sp .SH 注意 .\"0 To define trim curves which stitch well, use \%\f3gluPwlCurve\fP. うまく繋がっているトリム曲線を定義するには \%\f3gluPwlCurve\fP を使う こと。 .SH 関連項目 \%\f3gluBeginCurve\fP, \%\f3gluBeginTrim\fP, \%\f3gluNewNurbsRenderer\fP, \%\f3gluPwlCurve\fP