sculpto
Public Member Functions | Public Attributes | List of all members
scl::topology::basis< Tvertex > Class Template Reference

#include <basis.h>

Public Member Functions

const mesh_type GetType () const
 
const std::vector< Tvertex > GetVertices () const
 
const std::vector< u32GetIndices () const
 
const vec3GetBoundMin () const
 
const vec3GetBoundMax () const
 
std::vector< Tvertex >::const_iterator cbegin () const
 
std::vector< Tvertex >::const_iterator cend () const
 
 basis (mesh_type MeshType)
 
 basis (mesh_type MeshType, const std::vector< Tvertex > &Vertices, const std::vector< u32 > &Indices)
 
 basis (mesh_type MeshType, std::vector< Tvertex > &&Vertices, std::vector< u32 > &&Indices)
 
virtual ~basis ()=default
 

Public Attributes

mesh_type MeshType
 
std::vector< Tvertex > Vertices {}
 
std::vector< u32Indices {}
 
vec3 Min {}
 
vec3 Max {}
 

Detailed Description

template<typename Tvertex>
class scl::topology::basis< Tvertex >

Topology object basis class.

Definition at line 18 of file basis.h.

Constructor & Destructor Documentation

◆ basis() [1/3]

template<typename Tvertex >
scl::topology::basis< Tvertex >::basis ( mesh_type  MeshType)
inline
  • Topology object basis default constructor.
Parameters
MeshType-object mesh type.

Definition at line 47 of file basis.h.

mesh_type MeshType
Definition: basis.h:21

◆ basis() [2/3]

template<typename Tvertex >
scl::topology::basis< Tvertex >::basis ( mesh_type  MeshType,
const std::vector< Tvertex > &  Vertices,
const std::vector< u32 > &  Indices 
)
inline
  • Topology object basis default constructor.
Parameters
MeshType-object mesh type.
Vertices- verticeies array.
Indices- vertices indices.

Definition at line 56 of file basis.h.

56 :
std::vector< Tvertex > Vertices
Definition: basis.h:22
std::vector< u32 > Indices
Definition: basis.h:23

◆ basis() [3/3]

template<typename Tvertex >
scl::topology::basis< Tvertex >::basis ( mesh_type  MeshType,
std::vector< Tvertex > &&  Vertices,
std::vector< u32 > &&  Indices 
)
inline
  • Topology object basis constructor.
Parameters
MeshType-object mesh type.
Vertices- verticeies array rvalue ref.
Indices- vertices indices rvalue ref.

Definition at line 66 of file basis.h.

66 :
67 Vertices(std::move(Vertices)), Indices(std::move(Indices)) {}

◆ ~basis()

template<typename Tvertex >
virtual scl::topology::basis< Tvertex >::~basis ( )
virtualdefault

Topology object basis default destructor.

Member Function Documentation

◆ cbegin()

template<typename Tvertex >
std::vector< Tvertex >::const_iterator scl::topology::basis< Tvertex >::cbegin ( ) const
inline

Definition at line 38 of file basis.h.

38{ return Vertices.begin(); }

◆ cend()

template<typename Tvertex >
std::vector< Tvertex >::const_iterator scl::topology::basis< Tvertex >::cend ( ) const
inline

Definition at line 39 of file basis.h.

39{ return Vertices.end(); }

◆ GetBoundMax()

template<typename Tvertex >
const vec3 & scl::topology::basis< Tvertex >::GetBoundMax ( ) const
inline

Object bound box maximum point getter function.

Definition at line 36 of file basis.h.

36{ return Max; }

◆ GetBoundMin()

template<typename Tvertex >
const vec3 & scl::topology::basis< Tvertex >::GetBoundMin ( ) const
inline

Object bound box minimum point getter function.

Definition at line 34 of file basis.h.

34{ return Min; }

◆ GetIndices()

template<typename Tvertex >
const std::vector< u32 > scl::topology::basis< Tvertex >::GetIndices ( ) const
inline

Topology obect basis vertices indices getter function.

Definition at line 32 of file basis.h.

32{ return Indices; }

◆ GetType()

template<typename Tvertex >
const mesh_type scl::topology::basis< Tvertex >::GetType ( ) const
inline

Object bound box points.

Topology obect basis getter/setter functions.

Topology object type getter function.

Definition at line 28 of file basis.h.

28{ return MeshType; }

◆ GetVertices()

template<typename Tvertex >
const std::vector< Tvertex > scl::topology::basis< Tvertex >::GetVertices ( ) const
inline

Topology obect basis vertices getter function.

Definition at line 30 of file basis.h.

30{ return Vertices; }

Member Data Documentation

◆ Indices

template<typename Tvertex >
std::vector<u32> scl::topology::basis< Tvertex >::Indices {}

Object vertices.

Definition at line 23 of file basis.h.

◆ Max

template<typename Tvertex >
vec3 scl::topology::basis< Tvertex >::Max {}

Definition at line 24 of file basis.h.

◆ MeshType

template<typename Tvertex >
mesh_type scl::topology::basis< Tvertex >::MeshType

Topology object basis data.

Definition at line 21 of file basis.h.

◆ Min

template<typename Tvertex >
vec3 scl::topology::basis< Tvertex >::Min {}

Object vertices indices.

Definition at line 24 of file basis.h.

◆ Vertices

template<typename Tvertex >
std::vector<Tvertex> scl::topology::basis< Tvertex >::Vertices {}

Object mesh type.

Definition at line 22 of file basis.h.


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