Visual Computing Library
Loading...
Searching...
No Matches
vcl::CompId Struct Reference

The CompId struct enumerates the components that can compose a element or a mesh. More...

#include <vclib/types/mesh_components.h>

Public Types

enum  Enum {
  BIT_FLAGS = 0 , COORDINATE , NORMAL , COLOR ,
  QUALITY , MARK , PRINCIPAL_CURVATURE , TEX_COORD ,
  VERTEX_REFERENCES , ADJACENT_EDGES , ADJACENT_FACES , ADJACENT_VERTICES ,
  WEDGE_COLORS , WEDGE_TEX_COORDS , BOUNDING_BOX , NAME ,
  TEXTURE_IMAGES , TEXTURE_PATHS , TRANSFORM_MATRIX , CUSTOM_COMPONENTS ,
  COMPONENTS_NUMBER
}
 

Detailed Description

The CompId struct enumerates the components that can compose a element or a mesh.

The components are identified by an unsigned integer value, that can be used to access the component of the element or mesh through a template parameter, without having to know the actual type of the component.

For example, you can access the coordinate component of an element with the following code:

auto& c = e.template component<CompId::COORDINATE>();
A class representing a line segment in n-dimensional space. The class is parameterized by a PointConc...
Definition segment.h:43

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