Usage: you must use this class as is. You should never derive it.
public class CAT3DPlanarFaceGP
Class to create the graphic primitive of a 3D planar face.
Role: Special face with only one normal for every vertices.
To be used like a CAT3DFaceGP, but with only one normal.
| public CAT3DPlanarFaceGP( | ) |
| public CAT3DPlanarFaceGP( | const | iVertices, | |
| const | iVerticesArraySize, | ||
| const | iNormals, | ||
| const | iTriangleIndice, | ||
| const | iNbTriangle, | ||
| const | iTriangleStripIndice, | ||
| const | iNbTriangleStrip, | ||
| const | iNbVertexPerTriangleStrip, | ||
| const | iTriangleFanIndice, | ||
| const | iNbTriangleFan, | ||
| const | iNbVertexPerTriangleFan, | ||
| const | iTextureCoord | =NULL, | |
| const | iTextureFormat | =3, | |
| const | iAllocMode | = ALLOCATE_VERTICES | ALLOCATE_NORMALS | ALLOCATE_TEXTURES, | |
| const | iTanBinorm | =NULL, | |
| const | iUV | =NULL) |
-----------------
| iTriangleIndices|
-----------------
| i00 | }
| i01 | } triangle 0 defined by index i00, i01 and i02
| i02 | }
| . |
| . |
| ij0 | }
| ij1 | } triangle j defined by index ij0, ij1 and ij2.
| ij2 | }
| . |
| . |
-----------------
For example, index ij0 enables access to the face j-th single triangle first vertex,
which coordinates are X = iVertices[ij0], Y = iVertices[ij0 + 1] and Z = iVertices[ij0 + 2], and
which normal has coordinates Nx = iNormals[ij0], Ny = iNormals[ij0 + 1] and Nz = iNormals[ij0 + 2].
----------------------
| iTriangleStripIndices|
----------------------
| i00 | }
| i01 | } first triangle strip defined
| . | } by the first n1 indices
| . | }
| i0n1 | }
| . |
| . |
| . |
| ij0 | }
| ij1 | }
| . | } triangle strip j
| . | } with nj vertices
| ijnj | }
----------------------
For example, index ij0 allows to access to the face j-th strip first vertex
wich coordinates are X = iVertices[ij0], Y = iVertices[ij0 + 1] and Z = iVertices[ij0 + 2], and
which normal coordinates are Nx = iNormals[ij0], Ny = iNormals[ij0 + 1] and Nz = iNormals[ij0 + 2].
--------------------------
|iNbVertexPerTriangleStrip |
--------------------------
| n1 |
| . |
| . | m = Number of triangle strips(iNbTriangleStrip)
| nm | nm = number of vertices of the m-th strip. (iNbVertexPerTriangleStrip[m]
--------------------------
----------------------
| iTriangleFanIndices |
----------------------
| i00 | }
| i01 | } first triangle fan defined
| . | } by the first n1 indices
| . | }
| i0n1 | }
| . |
| . |
| . |
| ij0 | }
| ij1 | }
| . | } triangle fan j
| . | } with nj vertices
| ijnj | }
----------------------
For example, index ij0 allows to access to the face j-th fan first vertex
wich coordinates are X = iVertices[ij0], Y = iVertices[ij0 + 1] and Z = iVertices[ij0 + 2], and
which normal coordinates are Nx = iNormals[ij0], Ny = iNormals[ij0 + 1] and Nz = iNormals[ij0 + 2].
Each ij0, j in [0, jn], represents the j-th fan center.
--------------------------
| iNbVertexPerTriangleFan |
--------------------------
| n1 |
| . |
| . | m = Number of triangle fans(iNbTriangleFan)
| nm | nm = number of vertices of the m-th fan. (iNbVertexPerTriangleFan[m]
--------------------------
| public CAT3DPlanarFaceGP( | const | iVertices, | |
| const | iVerticesArraySize, | ||
| const | iNormals, | ||
| const | iTriangleIndice, | ||
| const | iNbTriangle, | ||
| const | iTriangleStripIndice, | ||
| const | iNbTriangleStrip, | ||
| const | iNbVertexPerTriangleStrip, | ||
| const | iTriangleFanIndice, | ||
| const | iNbTriangleFan, | ||
| const | iNbVertexPerTriangleFan, | ||
| const | iTextureCoord, | ||
| const | iTextureFormat, | ||
| const | iAllocMode, | ||
| const | iTanBinorm, | ||
| const | iToleranceScale, | ||
| const | iUV | = NULL) |
-----------------
| iTriangleIndices|
-----------------
| i00 | }
| i01 | } triangle 0 defined by index i00, i01 and i02
| i02 | }
| . |
| . |
| ij0 | }
| ij1 | } triangle j defined by index ij0, ij1 and ij2.
| ij2 | }
| . |
| . |
-----------------
For example, index ij0 enables access to the face j-th single triangle first vertex,
which coordinates are X = iVertices[ij0], Y = iVertices[ij0 + 1] and Z = iVertices[ij0 + 2], and
which normal has coordinates Nx = iNormals[ij0], Ny = iNormals[ij0 + 1] and Nz = iNormals[ij0 + 2].
----------------------
| iTriangleStripIndices|
----------------------
| i00 | }
| i01 | } first triangle strip defined
| . | } by the first n1 indices
| . | }
| i0n1 | }
| . |
| . |
| . |
| ij0 | }
| ij1 | }
| . | } triangle strip j
| . | } with nj vertices
| ijnj | }
----------------------
For example, index ij0 allows to access to the face j-th strip first vertex
wich coordinates are X = iVertices[ij0], Y = iVertices[ij0 + 1] and Z = iVertices[ij0 + 2], and
which normal coordinates are Nx = iNormals[ij0], Ny = iNormals[ij0 + 1] and Nz = iNormals[ij0 + 2].
--------------------------
|iNbVertexPerTriangleStrip |
--------------------------
| n1 |
| . |
| . | m = Number of triangle strips(iNbTriangleStrip)
| nm | nm = number of vertices of the m-th strip. (iNbVertexPerTriangleStrip[m]
--------------------------
----------------------
| iTriangleFanIndices |
----------------------
| i00 | }
| i01 | } first triangle fan defined
| . | } by the first n1 indices
| . | }
| i0n1 | }
| . |
| . |
| . |
| ij0 | }
| ij1 | }
| . | } triangle fan j
| . | } with nj vertices
| ijnj | }
----------------------
For example, index ij0 allows to access to the face j-th fan first vertex
wich coordinates are X = iVertices[ij0], Y = iVertices[ij0 + 1] and Z = iVertices[ij0 + 2], and
which normal coordinates are Nx = iNormals[ij0], Ny = iNormals[ij0 + 1] and Nz = iNormals[ij0 + 2].
Each ij0, j in [0, jn], represents the j-th fan center.
--------------------------
| iNbVertexPerTriangleFan |
--------------------------
| n1 |
| . |
| . | m = Number of triangle fans(iNbTriangleFan)
| nm | nm = number of vertices of the m-th fan. (iNbVertexPerTriangleFan[m]
--------------------------
| public virtual Draw( | iRender) |
Copyright © 1999-2015, Dassault Systèmes. All rights reserved.