Assimp  v4.1. (December 2018)
CX3DImporter_NodeElement_IndexedSet Class Reference

Inherits CX3DImporter_NodeElement_Geometry3D.

Public Member Functions

 CX3DImporter_NodeElement_IndexedSet (const EType pType, CX3DImporter_NodeElement *pParent)
 
- Public Member Functions inherited from CX3DImporter_NodeElement_Geometry3D
 CX3DImporter_NodeElement_Geometry3D (const EType pType, CX3DImporter_NodeElement *pParent)
 Constructor. More...
 
- Public Member Functions inherited from CX3DImporter_NodeElement
virtual ~CX3DImporter_NodeElement ()
 The destructor, virtual. More...
 

Public Attributes

bool CCW
 
std::vector< int32_tColorIndex
 Field to specify the polygonal faces by indexing into the <Color> or <ColorRGBA>. More...
 
bool ColorPerVertex
 If true then colors are defined for every vertex, else for every face(line). More...
 
bool Convex
 
std::vector< int32_tCoordIndex
 Field to specify the polygonal faces by indexing into the <Coordinate>. More...
 
float CreaseAngle
 
std::vector< int32_tNormalIndex
 Field to specify the polygonal faces by indexing into the <Normal>. More...
 
bool NormalPerVertex
 If true then normals are defined for every vertex, else for every face(line). More...
 
std::vector< int32_tTexCoordIndex
 Field to specify the polygonal faces by indexing into the <TextureCoordinate>. More...
 
- Public Attributes inherited from CX3DImporter_NodeElement_Geometry3D
size_t NumIndices
 Number of indices in one face. More...
 
bool Solid
 Flag: if true then render must use back-face culling, else render must draw both sides of object. More...
 
std::list< aiVector3DVertices
 Vertices list. More...
 
- Public Attributes inherited from CX3DImporter_NodeElement
std::list< CX3DImporter_NodeElement * > Child
 Child elements. More...
 
std::string ID
 ID of the element. Can be empty. In X3D synonym for "ID" attribute. More...
 
CX3DImporter_NodeElementParent
 Parent element. If nullptr then this node is root. More...
 
const EType Type
 

Additional Inherited Members

- Public Types inherited from CX3DImporter_NodeElement
enum  EType {
  ENET_Group, ENET_MetaBoolean, ENET_MetaDouble, ENET_MetaFloat,
  ENET_MetaInteger, ENET_MetaSet, ENET_MetaString, ENET_Arc2D,
  ENET_ArcClose2D, ENET_Circle2D, ENET_Disk2D, ENET_Polyline2D,
  ENET_Polypoint2D, ENET_Rectangle2D, ENET_TriangleSet2D, ENET_Box,
  ENET_Cone, ENET_Cylinder, ENET_Sphere, ENET_ElevationGrid,
  ENET_Extrusion, ENET_Coordinate, ENET_Normal, ENET_TextureCoordinate,
  ENET_IndexedFaceSet, ENET_IndexedLineSet, ENET_IndexedTriangleSet, ENET_IndexedTriangleFanSet,
  ENET_IndexedTriangleStripSet, ENET_LineSet, ENET_PointSet, ENET_TriangleSet,
  ENET_TriangleFanSet, ENET_TriangleStripSet, ENET_Color, ENET_ColorRGBA,
  ENET_Shape, ENET_Appearance, ENET_Material, ENET_ImageTexture,
  ENET_TextureTransform, ENET_DirectionalLight, ENET_PointLight, ENET_SpotLight,
  ENET_Invalid
}
 
- Protected Member Functions inherited from CX3DImporter_NodeElement
 CX3DImporter_NodeElement (const EType pType, CX3DImporter_NodeElement *pParent)
 In constructor inheritor must set element type. More...
 

Detailed Description

Shape with indexed vertices.

Constructor & Destructor Documentation

◆ CX3DImporter_NodeElement_IndexedSet()

CX3DImporter_NodeElement_IndexedSet::CX3DImporter_NodeElement_IndexedSet ( const EType  pType,
CX3DImporter_NodeElement pParent 
)
inline

Constructor.

Parameters
[in]pParent- pointer to parent node.
[in]pType- type of geometry object.

Member Data Documentation

◆ CCW

CX3DImporter_NodeElement_IndexedSet::CCW

The ccw field defines the ordering of the vertex coordinates of the geometry with respect to user-given or automatically generated normal vectors used in the lighting model equations. If ccw is TRUE, the normals shall follow the right hand rule; the orientation of each normal with respect to the vertices (taken in order) shall be such that the vertices appear to be oriented in a counterclockwise order when the vertices are viewed (in the local coordinate system of the Shape) from the opposite direction as the normal. If ccw is FALSE, the normals shall be oriented in the opposite direction. If normals are not generated but are supplied using a Normal node, and the orientation of the normals does not match the setting of the ccw field, results are undefined.

◆ ColorIndex

std::vector<int32_t> CX3DImporter_NodeElement_IndexedSet::ColorIndex

Field to specify the polygonal faces by indexing into the <Color> or <ColorRGBA>.

◆ ColorPerVertex

bool CX3DImporter_NodeElement_IndexedSet::ColorPerVertex

If true then colors are defined for every vertex, else for every face(line).

◆ Convex

CX3DImporter_NodeElement_IndexedSet::Convex

The convex field indicates whether all polygons in the shape are convex (TRUE). A polygon is convex if it is planar, does not intersect itself, and all of the interior angles at its vertices are less than 180 degrees. Non planar and self intersecting polygons may produce undefined results even if the convex field is FALSE.

◆ CoordIndex

std::vector<int32_t> CX3DImporter_NodeElement_IndexedSet::CoordIndex

Field to specify the polygonal faces by indexing into the <Coordinate>.

◆ CreaseAngle

CX3DImporter_NodeElement_IndexedSet::CreaseAngle

If the angle between the geometric normals of two adjacent faces is less than the crease angle, normals shall be calculated so that the faces are shaded smoothly across the edge; otherwise, normals shall be calculated so that a lighting discontinuity across the edge is produced.

◆ NormalIndex

std::vector<int32_t> CX3DImporter_NodeElement_IndexedSet::NormalIndex

Field to specify the polygonal faces by indexing into the <Normal>.

◆ NormalPerVertex

bool CX3DImporter_NodeElement_IndexedSet::NormalPerVertex

If true then normals are defined for every vertex, else for every face(line).

◆ TexCoordIndex

std::vector<int32_t> CX3DImporter_NodeElement_IndexedSet::TexCoordIndex

Field to specify the polygonal faces by indexing into the <TextureCoordinate>.


The documentation for this class was generated from the following file: