A vector of mgTL2Triangle's.
[詳解]
A vector of mgTL2Triangle's.
mgTL2Triangle holds multiple triangles, and mgTL2Triangles holds vector of mgTriangle's. ポリゴンのベクトル保持クラス
- 引数
-
dkind | Indicates if triangles's data is (u,v) data, (x,y,z) or (x,y,z) with the normal. =UV(0): (u,v) data. The space dimension of all the elements(MGPosition) of mgTL2Triangle is 2. =XYZ(1): (x,y,z) data. The space dimension of all the elements(MGPosition) of mgTL2Triangle is 3. =XYZNormal(2): (x,y,z) with (xn,yn,zn)=normal data. The space dimension of all the elements(MGPosition) of mgTL2Triangle is 6 and includes (x,y,z,xn,yn,zn). Here (xn,yn,zn) is the unit normal at the position (x,y,z) of the surface. |
return the data kind of this.
bool mgTL2Triangles::is_uv |
( |
| ) |
const |
|
inline |
Return true if m_triangles' data is (u,v).
Make fan data from plinen and pline0 and push back to this. The number of vertices of plinen is 2 or greater than 2. The fan is made from the pline0's start point to n vertices of plinen.
Make strip data from pline0 and pline2 and push back to this. The number of vertices of pline0 is greater or equal to the one of pline2. And the differecne must be at most 1.
bool mgTL2Triangles::need_normal |
( |
| ) |
const |
|
inline |
Return true if m_triangles' data is (u,v).
void mgTL2Triangles::push_back |
( |
const mgTL2Fans & |
fans, |
|
|
int |
nvTri, |
|
|
const std::vector< int > & |
verticesIDs |
|
) |
| |
Push back a triangel of type mgTESTRIANG_FAN. The veritces of the triangle is verticesIDs which are vertex id of fans.
- 引数
-
fans | Target to push back. |
nvTri | Number of vertices in verticesIDs. generally nvTri!=verticesIDs.size(). |
verticesIDs | Vertex ids. |
void mgTL2Triangles::set_surface |
( |
const MGSurface * |
surf | ) |
|
|
inline |
int mgTL2Triangles::size |
( |
| ) |
const |
|
inline |
const MGSurface* mgTL2Triangles::surface |
( |
| ) |
const |
|
inline |
void mgTL2Triangles::tessellate1234edgesLoop |
( |
const MGLoop & |
oloop | ) |
|
Do perform the tessellation for the mgTL2Plygon that has 3 or 4 edges outer loop, and that has no inner loops. The result will be appended onto triangles. When triangles.is_uv()=false, all of the element of the triangle position data has normal data as (x,y,z,xn,yn,zn). Here (x,y,z) is the position data and (xn,yn,zn) is the normal vector at the position (x,y,z). When triangles.is_uv()=true, all of the element of the triange position data are (u,v). Tessellated triangles will be appended.
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
const mgTL2Triangles & |
tlTriangles |
|
) |
| |
|
friend |
このクラス詳解は次のファイルから抽出されました: