Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
gte::VertexCollapseMesh< Real > Class Template Reference

#include <GteVertexCollapseMesh.h>

Classes

struct  Record
 
struct  VCVertex
 

Public Member Functions

bool DoCollapse (Record &record)
 
ETManifoldMesh const & GetMesh () const
 
 VertexCollapseMesh (int numPositions, Vector3< Real > const *positions, int numIndices, int const *indices)
 

Private Types

enum  { VCM_NO_MORE_ALLOWED, VCM_ALLOWED, VCM_DEFERRED, VCM_UNEXPECTED_ERROR }
 

Private Member Functions

int Collapsed (std::vector< TriangleKey< true >> const &removed, std::vector< TriangleKey< true >> const &inserted, std::vector< int > const &linkVertices)
 
int TriangulateLink (std::shared_ptr< VCVertex > const &vertex, std::vector< TriangleKey< true >> &removed, std::vector< TriangleKey< true >> &inserted, std::vector< int > &linkVertices) const
 

Private Attributes

std::map< int, typename MinHeap< int, Real >::Record * > mHeapRecords
 
VETManifoldMesh mMesh
 
MinHeap< int, Real > mMinHeap
 
int mNumPositions
 
Vector3< Real > const * mPositions
 

Detailed Description

template<typename Real>
class gte::VertexCollapseMesh< Real >

Definition at line 22 of file GteVertexCollapseMesh.h.

Member Enumeration Documentation

template<typename Real >
anonymous enum
private
Enumerator
VCM_NO_MORE_ALLOWED 
VCM_ALLOWED 
VCM_DEFERRED 
VCM_UNEXPECTED_ERROR 

Definition at line 103 of file GteVertexCollapseMesh.h.

Constructor & Destructor Documentation

template<typename Real >
gte::VertexCollapseMesh< Real >::VertexCollapseMesh ( int  numPositions,
Vector3< Real > const *  positions,
int  numIndices,
int const *  indices 
)

Definition at line 127 of file GteVertexCollapseMesh.h.

Member Function Documentation

template<typename Real >
int gte::VertexCollapseMesh< Real >::Collapsed ( std::vector< TriangleKey< true >> const &  removed,
std::vector< TriangleKey< true >> const &  inserted,
std::vector< int > const &  linkVertices 
)
private

Definition at line 403 of file GteVertexCollapseMesh.h.

template<typename Real >
bool gte::VertexCollapseMesh< Real >::DoCollapse ( Record record)

Definition at line 190 of file GteVertexCollapseMesh.h.

template<typename Real >
ETManifoldMesh const & gte::VertexCollapseMesh< Real >::GetMesh ( ) const
inline

Definition at line 297 of file GteVertexCollapseMesh.h.

template<typename Real >
int gte::VertexCollapseMesh< Real >::TriangulateLink ( std::shared_ptr< VCVertex > const &  vertex,
std::vector< TriangleKey< true >> &  removed,
std::vector< TriangleKey< true >> &  inserted,
std::vector< int > &  linkVertices 
) const
private

Definition at line 303 of file GteVertexCollapseMesh.h.

Member Data Documentation

template<typename Real >
std::map<int, typename MinHeap<int, Real>::Record*> gte::VertexCollapseMesh< Real >::mHeapRecords
private

Definition at line 122 of file GteVertexCollapseMesh.h.

template<typename Real >
VETManifoldMesh gte::VertexCollapseMesh< Real >::mMesh
private

Definition at line 119 of file GteVertexCollapseMesh.h.

template<typename Real >
MinHeap<int, Real> gte::VertexCollapseMesh< Real >::mMinHeap
private

Definition at line 121 of file GteVertexCollapseMesh.h.

template<typename Real >
int gte::VertexCollapseMesh< Real >::mNumPositions
private

Definition at line 117 of file GteVertexCollapseMesh.h.

template<typename Real >
Vector3<Real> const* gte::VertexCollapseMesh< Real >::mPositions
private

Definition at line 118 of file GteVertexCollapseMesh.h.


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


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:07