Visual Computing Library
devel
|
The Vertex class represents an Vertex element of the vcl::Mesh class. More...
#include <vclib/mesh/elements/vertex.h>
Public Member Functions | |
Vertex ()=default | |
Empty constructor. | |
![]() | |
auto & | component () |
const auto & | component () const |
void | deserialize (std::istream &in) |
void | importFrom (const ElType &v, bool importRefs=true) |
uint | index () const |
void | serialize (std::ostream &out) const |
![]() | |
ParentMeshPointer & | operator= (const ParentMeshPointer< MeshType > &) |
constexpr MeshType * | parentMesh () |
constexpr const MeshType * | parentMesh () const |
ParentMeshPointer (const ParentMeshPointer< MeshType > &) | |
ParentMeshPointer (ParentMeshPointer< MeshType > &&) | |
Additional Inherited Members | |
![]() | |
using | Components = TypeWrapper< Comps... > |
Components is an alias to a vcl::TypeWrapper that wraps all the Components from which the Element inherits (Comps). | |
using | ParentMeshType = MeshType |
![]() | |
using | ParentMeshType = MeshType |
![]() | |
static const uint | ELEMENT_ID |
![]() | |
void | setParentMesh (void *parentMesh) |
The Vertex class represents an Vertex element of the vcl::Mesh class.
Using the VertexContainer class, it is possible to add a vector of Vertex elements to a mesh, and manage them with the member functions exposed by the VertexContainer. Each Vertex element exposes all the member functions of its Component types.
MeshType | The type of the parent mesh. |
Comps | The types of the components of the element. |
|
default |
Empty constructor.
Calls automatically all the empty constructors of all the components available in the Vertex (for all the components non-available, their empty constructor is called only when they become available).