Untold Engine  Beta v0.0.16
docs
U4DEngine::U4DVertexData Class Reference

The U4DVertexData represents attribute data for a 3D entity. More...

Public Member Functions

 U4DVertexData ()
 Constructor for the class.
 
 ~U4DVertexData ()
 Destructor for the class.
 
void addVerticesDataToContainer (U4DVector3n &uData)
 Method which adds the entity's mesh vertices into a container. More...
 
void addNormalDataToContainer (U4DVector3n &uData)
 Method which adds the entity's mesh normal vertices into a container. More...
 
void addUVDataToContainer (U4DVector2n &uData)
 Method which adds the entity's mesh uv coordinates into a container. More...
 
void addTangetDataToContainer (U4DVector4n &uData)
 Method which adds the entity's mesh tangent vertices into a container. More...
 
void addIndexDataToContainer (U4DIndex &uData)
 Method which adds the entity's mesh indices into a container. More...
 
void addConvexHullVerticesToContainer (U4DVector3n &uData)
 Method which adds the entity's mesh convex-hull vertices into a container. More...
 
void addVertexWeightsToContainer (U4DVector4n &uData)
 Method which adds the entity's mesh bone weights into a container. More...
 
void addBoneIndicesToContainer (U4DVector4n &uData)
 Method which adds the entity's mesh bone indices into a container. More...
 
void addConvexHullEdgesDataToContainer (U4DSegment &uData)
 Method which adds the entity's mesh convex-hull edges into a container. More...
 
void addConvexHullFacesDataToContainer (U4DTriangle &uData)
 Method which adds the entity's mesh convex-hull faces into a container. More...
 
void setModelDimension (U4DVector3n &uData)
 Method which sets the entity's mesh dimension. More...
 
std::vector< U4DVector3ngetVerticesDataFromContainer ()
 Method which returns the container holding the entity's mesh vertices. More...
 
std::vector< U4DVector3ngetConvexHullVerticesFromContainer ()
 Method which returns the container holding the entity's mesh convex-hull vertices. More...
 
std::vector< U4DSegmentgetConvexHullEdgesDataFromContainer ()
 Method which returns the container holding the entity's mesh convex-hull edges. More...
 
std::vector< U4DTrianglegetConvexHullFacesDataFromContainer ()
 Method which returns the container holding the entity's mesh convex-hull faces. More...
 
U4DVector3n getModelDimension ()
 Method which returns the entity's mesh dimension. More...
 

Public Attributes

std::vector< U4DVector3nverticesContainer
 Vector containing the entity's mesh vertices.
 
std::vector< U4DVector3nnormalContainer
 Vector containing the entity's mesh normal vertices.
 
std::vector< U4DVector2nuVContainer
 Vector containing the entity's mesh uv coordinates.
 
std::vector< U4DVector4ntangentContainer
 Vector containing the entity's mesh tangent vertices.
 
std::vector< U4DIndexindexContainer
 Vector containing the entity's mesh indices.
 
std::vector< U4DVector3nconvexHullVerticesContainer
 Vector containing the entity's mesh convex-hull vertices.
 
std::vector< U4DVector4nvertexWeightsContainer
 Vector containing the entity's mesh bone weight vertices.
 
std::vector< U4DVector4nboneIndicesContainer
 Vector containing the entity's mesh bone indices.
 
std::vector< U4DSegmentconvexHullEdgesContainer
 Vector containing the entity's mesh convex-hull edges.
 
std::vector< U4DTriangleconvexHullFacesContainer
 Vector containing the entity's mesh convex-hull faces.
 
U4DVector3n modelDimension
 3D vector containing the dimensions of the mesh
 

Detailed Description

The U4DVertexData represents attribute data for a 3D entity.

Member Function Documentation

◆ addBoneIndicesToContainer()

void U4DEngine::U4DVertexData::addBoneIndicesToContainer ( U4DVector4n uData)

Method which adds the entity's mesh bone indices into a container.

Parameters
uDataEntity's mesh bone indices

◆ addConvexHullEdgesDataToContainer()

void U4DEngine::U4DVertexData::addConvexHullEdgesDataToContainer ( U4DSegment uData)

Method which adds the entity's mesh convex-hull edges into a container.

Parameters
uDataEntity's mesh convex-hull edges

◆ addConvexHullFacesDataToContainer()

void U4DEngine::U4DVertexData::addConvexHullFacesDataToContainer ( U4DTriangle uData)

Method which adds the entity's mesh convex-hull faces into a container.

Parameters
uDataEntity's mesh convex-hull faces

◆ addConvexHullVerticesToContainer()

void U4DEngine::U4DVertexData::addConvexHullVerticesToContainer ( U4DVector3n uData)

Method which adds the entity's mesh convex-hull vertices into a container.

Parameters
uDataEntity's mesh convex-hull vertices

◆ addIndexDataToContainer()

void U4DEngine::U4DVertexData::addIndexDataToContainer ( U4DIndex uData)

Method which adds the entity's mesh indices into a container.

Parameters
uDataEntity's mesh indices

◆ addNormalDataToContainer()

void U4DEngine::U4DVertexData::addNormalDataToContainer ( U4DVector3n uData)

Method which adds the entity's mesh normal vertices into a container.

Parameters
uDataEntity's mesh normal vertices

◆ addTangetDataToContainer()

void U4DEngine::U4DVertexData::addTangetDataToContainer ( U4DVector4n uData)

Method which adds the entity's mesh tangent vertices into a container.

Parameters
uDataEntity's mesh tangent vertices

◆ addUVDataToContainer()

void U4DEngine::U4DVertexData::addUVDataToContainer ( U4DVector2n uData)

Method which adds the entity's mesh uv coordinates into a container.

Parameters
uDataEntity's mesh uv coordinates

◆ addVertexWeightsToContainer()

void U4DEngine::U4DVertexData::addVertexWeightsToContainer ( U4DVector4n uData)

Method which adds the entity's mesh bone weights into a container.

Parameters
uDataEntity's mesh bone weights

◆ addVerticesDataToContainer()

void U4DEngine::U4DVertexData::addVerticesDataToContainer ( U4DVector3n uData)

Method which adds the entity's mesh vertices into a container.

Parameters
uDataEntity's mesh vertices

◆ getConvexHullEdgesDataFromContainer()

std::vector< U4DSegment > U4DEngine::U4DVertexData::getConvexHullEdgesDataFromContainer ( )

Method which returns the container holding the entity's mesh convex-hull edges.

Returns
Returns the entity's mesh convex-hull edges

◆ getConvexHullFacesDataFromContainer()

std::vector< U4DTriangle > U4DEngine::U4DVertexData::getConvexHullFacesDataFromContainer ( )

Method which returns the container holding the entity's mesh convex-hull faces.

Returns
Returns the entity's mesh convex-hull faces

◆ getConvexHullVerticesFromContainer()

std::vector< U4DVector3n > U4DEngine::U4DVertexData::getConvexHullVerticesFromContainer ( )

Method which returns the container holding the entity's mesh convex-hull vertices.

Returns
Returns the entity's mesh convex-hull vertices

◆ getModelDimension()

U4DVector3n U4DEngine::U4DVertexData::getModelDimension ( )

Method which returns the entity's mesh dimension.

Returns
3D vector containing the entity's mesh dimension

◆ getVerticesDataFromContainer()

std::vector< U4DVector3n > U4DEngine::U4DVertexData::getVerticesDataFromContainer ( )

Method which returns the container holding the entity's mesh vertices.

Returns
Returns the entity's mesh vertices

◆ setModelDimension()

void U4DEngine::U4DVertexData::setModelDimension ( U4DVector3n uData)

Method which sets the entity's mesh dimension.

Parameters
uData3D vector holding the length, width and height of the entity's mesh