MRPT  1.9.9
List of all members | Public Member Functions | Public Attributes
mrpt::opengl::CPolyhedron::TPolyhedronEdge Struct Reference

Detailed Description

Struct used to store a polyhedron edge.

The struct consists only of two vertex indices, used to access the polyhedron vertex list.

Definition at line 51 of file CPolyhedron.h.

#include <mrpt/opengl/CPolyhedron.h>

Public Member Functions

 TPolyhedronEdge ()=default
 Default constructor. More...
bool operator== (const TPolyhedronEdge &e) const
 Comparison agains another edge. More...
double length (const std::vector< mrpt::math::TPoint3D > &vs) const
 Given a set of vertices, computes the length of the vertex. More...
 ~TPolyhedronEdge ()=default
 Destructor. More...

Public Attributes

uint32_t v1 = 0
 Vertices. More...
uint32_t v2 = 0

Constructor & Destructor Documentation

◆ TPolyhedronEdge()

mrpt::opengl::CPolyhedron::TPolyhedronEdge::TPolyhedronEdge ( )

Default constructor.

Initializes to garbage.

◆ ~TPolyhedronEdge()

mrpt::opengl::CPolyhedron::TPolyhedronEdge::~TPolyhedronEdge ( )


Member Function Documentation

◆ length()

double CPolyhedron::TPolyhedronEdge::length ( const std::vector< mrpt::math::TPoint3D > &  vs) const

Given a set of vertices, computes the length of the vertex.

Definition at line 470 of file CPolyhedron.cpp.

References mrpt::math::distance().

Here is the call graph for this function:

◆ operator==()

bool mrpt::opengl::CPolyhedron::TPolyhedronEdge::operator== ( const TPolyhedronEdge e) const

Comparison agains another edge.

Simmetry is taken into account.

Definition at line 64 of file CPolyhedron.h.

References v1, and v2.

Member Data Documentation

◆ v1

uint32_t mrpt::opengl::CPolyhedron::TPolyhedronEdge::v1 = 0

◆ v2

uint32_t mrpt::opengl::CPolyhedron::TPolyhedronEdge::v2 = 0

Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: d1962bc6a Wed Jan 15 17:38:30 2020 +0100 at miƩ ene 15 17:45:11 CET 2020