![]() |
Chemical Data Processing Library C++ API - Version 1.3.0
|
Data structure for describing the geometric shape of 3D objects by means of a triangle mesh. More...
#include <TriangleMesh3D.hpp>
Public Types | |
typedef std::shared_ptr< TriangleMesh3D > | SharedPointer |
A reference-counted smart pointer [SHPTR] for dynamically allocated TriangleMesh3D instances. More... | |
![]() | |
typedef std::shared_ptr< Shape3D > | SharedPointer |
A reference-counted smart pointer [SHPTR] for dynamically allocated Shape3D instances. More... | |
Public Member Functions | |
Shape3D::SharedPointer | clone () const |
Creates a dynamically allocated copy of the graphics primitive. More... | |
void | accept (Shape3DVisitor &visitor) const |
Vis::Shape3DVisitor implementation accept method [VPTN]. More... | |
Math::Vector3DArray & | getVertices () |
const Math::Vector3DArray & | getVertices () const |
void | addVertex (double x, double y, double z) |
std::size_t | getNumVertices () const |
Math::Vector3DArray & | getVertexNormals () |
const Math::Vector3DArray & | getVertexNormals () const |
void | addVertexNormal (double x, double y, double z) |
std::size_t | getNumVertexNormals () const |
Math::Vector3ULArray & | getFaces () |
const Math::Vector3ULArray & | getFaces () const |
void | addFace (unsigned long v1_idx, unsigned long v2_idx, unsigned long v3_idx) |
std::size_t | getNumFaces () const |
bool | isSolid () const |
void | setSolid (bool solid=true) |
void | clear () |
void | swap (TriangleMesh3D &mesh) |
TriangleMesh3D & | operator+= (const TriangleMesh3D &mesh) |
![]() | |
virtual | ~Shape3D () |
Virtual destructor. More... | |
Data structure for describing the geometric shape of 3D objects by means of a triangle mesh.
typedef std::shared_ptr<TriangleMesh3D> CDPL::Vis::TriangleMesh3D::SharedPointer |
A reference-counted smart pointer [SHPTR] for dynamically allocated TriangleMesh3D
instances.
|
virtual |
Creates a dynamically allocated copy of the graphics primitive.
Implements CDPL::Vis::Shape3D.
|
virtual |
Vis::Shape3DVisitor implementation accept method [VPTN].
visitor | The Vis::Shape3DVisitor instance to accept. |
Implements CDPL::Vis::Shape3D.
Math::Vector3DArray& CDPL::Vis::TriangleMesh3D::getVertices | ( | ) |
const Math::Vector3DArray& CDPL::Vis::TriangleMesh3D::getVertices | ( | ) | const |
void CDPL::Vis::TriangleMesh3D::addVertex | ( | double | x, |
double | y, | ||
double | z | ||
) |
std::size_t CDPL::Vis::TriangleMesh3D::getNumVertices | ( | ) | const |
Math::Vector3DArray& CDPL::Vis::TriangleMesh3D::getVertexNormals | ( | ) |
const Math::Vector3DArray& CDPL::Vis::TriangleMesh3D::getVertexNormals | ( | ) | const |
void CDPL::Vis::TriangleMesh3D::addVertexNormal | ( | double | x, |
double | y, | ||
double | z | ||
) |
std::size_t CDPL::Vis::TriangleMesh3D::getNumVertexNormals | ( | ) | const |
Math::Vector3ULArray& CDPL::Vis::TriangleMesh3D::getFaces | ( | ) |
const Math::Vector3ULArray& CDPL::Vis::TriangleMesh3D::getFaces | ( | ) | const |
void CDPL::Vis::TriangleMesh3D::addFace | ( | unsigned long | v1_idx, |
unsigned long | v2_idx, | ||
unsigned long | v3_idx | ||
) |
std::size_t CDPL::Vis::TriangleMesh3D::getNumFaces | ( | ) | const |
bool CDPL::Vis::TriangleMesh3D::isSolid | ( | ) | const |
void CDPL::Vis::TriangleMesh3D::setSolid | ( | bool | solid = true | ) |
void CDPL::Vis::TriangleMesh3D::clear | ( | ) |
void CDPL::Vis::TriangleMesh3D::swap | ( | TriangleMesh3D & | mesh | ) |
TriangleMesh3D& CDPL::Vis::TriangleMesh3D::operator+= | ( | const TriangleMesh3D & | mesh | ) |