Support Forum       G3D Web Page     
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
G3D::ArticulatedModel::Geometry::Face Class Reference

Used by cleanGeometry. More...

Classes

struct  AMFaceVertexHash
 Tracks if position and texcoords match, but ignores normals and tangents. More...
 
class  Vertex
 Needed to extend CPUVertexArray::Vertex with texCoord1 and bone values. More...
 

Public Types

typedef Table< Point3, IndexArrayAdjacentFaceTable
 
typedef int Index
 Index of a Face in a temporary array. More...
 
typedef SmallArray< Index, 7 > IndexArray
 

Public Member Functions

 Face (Mesh *m, const Vertex &v0, const Vertex &v1, const Vertex &v2)
 
 Face ()
 

Public Attributes

Meshmesh
 Mesh from which this face was originally created. More...
 
Vector3 normal
 Non-unit face normal, used for weighted vertex normal computation. More...
 
Vector3 unitNormal
 
Vertex vertex [3]
 

Detailed Description

Used by cleanGeometry.

Member Typedef Documentation

◆ AdjacentFaceTable

◆ Index

Index of a Face in a temporary array.

◆ IndexArray

Constructor & Destructor Documentation

◆ Face() [1/2]

G3D::ArticulatedModel::Geometry::Face::Face ( Mesh m,
const Vertex v0,
const Vertex v1,
const Vertex v2 
)
inline

◆ Face() [2/2]

G3D::ArticulatedModel::Geometry::Face::Face ( )
inline

Member Data Documentation

◆ mesh

Mesh* G3D::ArticulatedModel::Geometry::Face::mesh

Mesh from which this face was originally created.

Needed for reconstructing the index arrays after vertices are merged.

◆ normal

Vector3 G3D::ArticulatedModel::Geometry::Face::normal

Non-unit face normal, used for weighted vertex normal computation.

Referenced by Face().

◆ unitNormal

Vector3 G3D::ArticulatedModel::Geometry::Face::unitNormal

Referenced by Face().

◆ vertex

Vertex G3D::ArticulatedModel::Geometry::Face::vertex[3]

documentation generated on Wed Nov 24 2021 08:01:53 using doxygen 1.8.15