VICUS Library
Documentation of Vicus library
Loading...
Searching...
No Matches
VICUS::PlaneTriangulationData Class Reference

#include <VICUS_PlaneTriangulationData.h>

Public Member Functions

 PlaneTriangulationData ()=default
 
 PlaneTriangulationData (const IBKMK::Vector3D &a, const IBKMK::Vector3D &b, const IBKMK::Vector3D &c)
 
void clear ()
 

Public Attributes

std::vector< IBKMK::Triangulation::triangle_t > m_triangles
 
std::vector< IBKMK::Vector3D > m_vertexes
 
IBKMK::Vector3D m_normal
 

Detailed Description

Class PlaneTriangulationData holds data needed to draw a triangulated plane. This is basically a vector of vertexes and a vector of triangles.

Constructor & Destructor Documentation

◆ PlaneTriangulationData() [1/2]

VICUS::PlaneTriangulationData::PlaneTriangulationData ( )
default

◆ PlaneTriangulationData() [2/2]

VICUS::PlaneTriangulationData::PlaneTriangulationData ( const IBKMK::Vector3D &  a,
const IBKMK::Vector3D &  b,
const IBKMK::Vector3D &  c 
)
inline

Convenience constructor, creates an object for a triangle.

Member Function Documentation

◆ clear()

void VICUS::PlaneTriangulationData::clear ( )
inline

Member Data Documentation

◆ m_normal

IBKMK::Vector3D VICUS::PlaneTriangulationData::m_normal

The normal vector.

◆ m_triangles

std::vector<IBKMK::Triangulation::triangle_t> VICUS::PlaneTriangulationData::m_triangles

Contains the vertex indexes for each triangle that the plane is composed of.

◆ m_vertexes

std::vector<IBKMK::Vector3D> VICUS::PlaneTriangulationData::m_vertexes

The vertexes used by the triangles.


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