MGCL V10
V10
MGCL V10
|
mgTL2Triangle holds (multiple) triangles data, which are a fan or a strip. [詳解]
公開型 | |
typedef std::vector < MGPosition >::iterator | iterator |
typedef std::vector < MGPosition >::const_iterator | const_iterator |
公開メンバ関数 | |
mgTL2Triangle (mgTESTRIANG type=mgTESTRIANG_FAN) | |
mgTL2Triangle (int n, mgTESTRIANG type=mgTESTRIANG_FAN) | |
const MGPosition & | operator[] (int i) const |
MGPosition & | operator[] (int i) |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
mgTESTRIANG | getGeometryType () const |
タイプを返却する mgTESTRIANG_FAN mgTESTRIANG_STRIP [詳解] | |
void | push_back (const MGPosition &xyz) |
void | pop_back () |
void | setGeometryType (mgTESTRIANG type) |
タイプを設定する [詳解] | |
int | size () const |
Obtain the number of points included. [詳解] | |
フレンド | |
std::ostream & | operator<< (std::ostream &out, const mgTL2Triangle &triangle) |
mgTL2Triangle holds (multiple) triangles data, which are a fan or a strip.
The space dimension of all the elements(MGPosition) of mgTL2Triangle is 2, 3 or 6. When 2, it is (u,v) that is a parameter value of the target surface. When 3, it is (x,y,z) and when 6, it is (x,y,z,xn,yn,zn). Here (xn,yn,zn) is the unit normal at the position (x,y,z) of the surface. See OpenGL for fan or strip.
typedef std::vector<MGPosition>::const_iterator mgTL2Triangle::const_iterator |
typedef std::vector<MGPosition>::iterator mgTL2Triangle::iterator |
|
inline |
type | triangles type, mgTESTRIANG_FAN or mgTESTRIANG_STRIP. |
mgTL2Triangle::mgTL2Triangle | ( | int | n, |
mgTESTRIANG | type = mgTESTRIANG_FAN |
||
) |
n | array length. All of the result MGPosition data included will be null. |
type | triangles type, mgTESTRIANG_FAN or mgTESTRIANG_STRIP. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
タイプを返却する mgTESTRIANG_FAN mgTESTRIANG_STRIP
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
タイプを設定する
|
inline |
Obtain the number of points included.
|
friend |