Clarisse 5.0 SP8 SDK  5.0.5.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Classes | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
GeometryUvMapData Struct Reference

Classes

struct  Edge
 Defines an edge by its start vertex index and end vertex index. Indices refer to vertices in the UVs list. More...
 

Public Member Functions

 GeometryUvMapData (const ModuleGeometry *module, unsigned int index)
 Initializes needed attributes to build the object, but does not load any data.
 
void load ()
 Loads the geometry's UV map data.
 
bool is_empty () const
 Returns true if UV and edge lists are empty.
 
void get_bboxes (CoreVector< GMathBbox3f > &bboxes) const
 Returns the list of edge bboxes.
 
size_t get_memory_size () const
 

Public Attributes

const ModuleGeometrymodule_geometry
 
unsigned int uv_map_index
 
CoreArray< GMathVec3f > uvs
 UV vertices.
 
CoreArray< Edgeedges
 Edge list.
 

Static Public Attributes

static const unsigned int invalid_index
 

Detailed Description

UV data for a single geometry:

Constructor & Destructor Documentation

GeometryUvMapData::GeometryUvMapData ( const ModuleGeometry module,
unsigned int  index 
)

Initializes needed attributes to build the object, but does not load any data.

Parameters
moduleThe geometry's ModuleObject
indexUV map index

Member Function Documentation

void GeometryUvMapData::get_bboxes ( CoreVector< GMathBbox3f > &  bboxes) const

Returns the list of edge bboxes.

The returned vector has the same order as the member edges vector. Therefore: bbox index = edge index.

Parameters
[out]bboxeslist of edge bboxes
bool GeometryUvMapData::is_empty ( ) const

Returns true if UV and edge lists are empty.

Returns
true if empty, false otherwise.