Visual Computing Library
|
The Edge class represents an Edge element of the vcl::Mesh class. More...
#include <vclib/mesh/elements/edge.h>
Public Types | |
using | VertexType = VRefs::VertexType |
![]() | |
using | ParentMeshType = MeshType |
using | Components = FilterTypesByCondition< comp::IsComponentPred, TypeWrapper< Comps... > >::type |
Components is an alias to a vcl::TypeWrapper that wraps all the types from which the Element inherits (Comps) that are Components (they satisfy the ComponentConcept). | |
![]() | |
using | ParentMeshType = MeshType |
Public Member Functions | |
Edge ()=default | |
Empty constructor. | |
void | setVertices (VertexType *v0, VertexType *v1) |
Sets the vertices of the edge. | |
void | setVertices (uint vi0, uint vi1) |
Sets the vertices of the edge. | |
![]() | |
uint | index () const |
auto & | component () |
const auto & | component () const |
void | importFrom (const ElType &v, bool importRefs=true) |
void | serialize (std::ostream &out) const |
void | deserialize (std::istream &in) |
![]() | |
ParentMeshPointer (const ParentMeshPointer< MeshType > &) | |
ParentMeshPointer (ParentMeshPointer< MeshType > &&) | |
ParentMeshPointer & | operator= (const ParentMeshPointer< MeshType > &) |
constexpr MeshType * | parentMesh () |
constexpr const MeshType * | parentMesh () const |
Private Types | |
using | VRefs = typename Edge::VertexReferences |
Additional Inherited Members | |
![]() | |
static const uint | ELEMENT_ID |
![]() | |
void | setParentMesh (void *parentMesh) |
The Edge class represents an Edge element of the vcl::Mesh class.
Using the EdgeContainer class, it is possible to add a vector of Edge elements to a mesh, and manage them with the member functions exposed by the EdgeContainer. Each Edge 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. |
Empty constructor.
Calls automatically all the empty constructors of all the components available in the Edge (for all the components non-available, their empty constructor is called only when they become available).
|
inline |
Sets the vertices of the edge.
[in] | vi0 | the index first vertex of the edge. |
[in] | vi1 | the index second vertex of the edge. |
|
inline |
Sets the vertices of the edge.
[in] | v0 | the first vertex of the edge. |
[in] | v1 | the second vertex of the edge. |