All Frameworks Class Hierarchy This Framework Previous Next Indexes
System.IUnknown
|
+---System.IDispatch
|
+---System.CATBaseUnknown
|
+---VisualizationBase.CATGraphicPrimitive
|
+---VisualizationBase.CAT3DBoundingGP
|
+---VisualizationBase.CAT3DFaceGP
|
+---CAT3DPlanarFaceGP
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.
-----------------
| 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]
--------------------------
-----------------
| 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( | void | ) |
| public virtual void Draw( | CATRender& | iRender) |
Copyright © 2003, Dassault Systèmes. All rights reserved.