GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
draco::CornerTable Class Reference

#include <corner_table.h>

Public Types

typedef std::array< VertexIndex, 3 > FaceType

Public Member Functions

 CornerTable ()
bool Init (const IndexTypeVector< FaceIndexFaceIndex, FaceType > &faces)
bool Reset (int num_faces)
bool Reset (int num_faces, int num_vertices)
int num_vertices () const
int num_corners () const
int num_faces () const
CornerIndex Opposite (CornerIndex corner) const
CornerIndex Next (CornerIndex corner) const
CornerIndex Previous (CornerIndex corner) const
VertexIndex Vertex (CornerIndex corner) const
VertexIndex ConfidentVertex (CornerIndex corner) const
FaceIndexFaceIndex Face (CornerIndex corner) const
CornerIndex FirstCorner (FaceIndexFaceIndex face) const
std::array< CornerIndex, 3 > AllCorners (FaceIndexFaceIndex face) const
int LocalIndex (CornerIndex corner) const
FaceType FaceData (FaceIndexFaceIndex face) const
void SetFaceData (FaceIndexFaceIndex face, FaceType data)
CornerIndex LeftMostCorner (VertexIndex v) const
VertexIndex VertexParent (VertexIndex vertex) const
bool IsValid (CornerIndex c) const
int Valence (VertexIndex v) const
int ConfidentValence (VertexIndex v) const
int Valence (CornerIndex c) const
int ConfidentValence (CornerIndex c) const
bool IsOnBoundary (VertexIndex vert) const
CornerIndex SwingRight (CornerIndex corner) const
CornerIndex SwingLeft (CornerIndex corner) const
CornerIndex GetLeftCorner (CornerIndex corner_id) const
CornerIndex GetRightCorner (CornerIndex corner_id) const
int NumNewVertices () const
int NumOriginalVertices () const
int NumDegeneratedFaces () const
int NumIsolatedVertices () const
bool IsDegenerated (FaceIndexFaceIndex face) const
void SetOppositeCorner (CornerIndex corner_id, CornerIndex opp_corner_id)
void SetOppositeCorners (CornerIndex corner_0, CornerIndex corner_1)
void MapCornerToVertex (CornerIndex corner_id, VertexIndex vert_id)
VertexIndex AddNewVertex ()
FaceIndexFaceIndex AddNewFace (const std::array< VertexIndex, 3 > &vertices)
void SetLeftMostCorner (VertexIndex vert, CornerIndex corner)
void UpdateVertexToCornerMap (VertexIndex vert)
void SetNumVertices (int num_vertices)
void MakeVertexIsolated (VertexIndex vert)
bool IsVertexIsolated (VertexIndex v) const
void MakeFaceInvalid (FaceIndexFaceIndex face)
void UpdateFaceToVertexMap (const VertexIndex vertex)
const draco::ValenceCache< CornerTable > & GetValenceCache () const

Static Public Member Functions

static std::unique_ptr< CornerTable > Create (const IndexTypeVector< FaceIndexFaceIndex, FaceType > &faces)

Member Typedef Documentation

◆ FaceType

typedef std::array<VertexIndex, 3> draco::CornerTable::FaceType

Constructor & Destructor Documentation

◆ CornerTable()

draco::CornerTable::CornerTable ( )
Here is the caller graph for this function:

Member Function Documentation

◆ AddNewFace()

FaceIndexFaceIndex draco::CornerTable::AddNewFace ( const std::array< VertexIndex, 3 > & vertices)
inline

◆ AddNewVertex()

VertexIndex draco::CornerTable::AddNewVertex ( )
inline

◆ AllCorners()

std::array< CornerIndex, 3 > draco::CornerTable::AllCorners ( FaceIndexFaceIndex face) const
inline

◆ ConfidentValence() [1/2]

int draco::CornerTable::ConfidentValence ( CornerIndex c) const
inline

◆ ConfidentValence() [2/2]

int draco::CornerTable::ConfidentValence ( VertexIndex v) const
Here is the caller graph for this function:

◆ ConfidentVertex()

VertexIndex draco::CornerTable::ConfidentVertex ( CornerIndex corner) const
inline
Here is the caller graph for this function:

◆ Create()

std::unique_ptr< CornerTable > draco::CornerTable::Create ( const IndexTypeVector< FaceIndexFaceIndex, FaceType > & faces)
static
Here is the caller graph for this function:

◆ Face()

FaceIndexFaceIndex draco::CornerTable::Face ( CornerIndex corner) const
inline

◆ FaceData()

FaceType draco::CornerTable::FaceData ( FaceIndexFaceIndex face) const
inline

◆ FirstCorner()

CornerIndex draco::CornerTable::FirstCorner ( FaceIndexFaceIndex face) const
inline
Here is the caller graph for this function:

◆ GetLeftCorner()

CornerIndex draco::CornerTable::GetLeftCorner ( CornerIndex corner_id) const
inline

◆ GetRightCorner()

CornerIndex draco::CornerTable::GetRightCorner ( CornerIndex corner_id) const
inline

◆ GetValenceCache()

const draco::ValenceCache< CornerTable > & draco::CornerTable::GetValenceCache ( ) const
inline
Here is the caller graph for this function:

◆ Init()

bool draco::CornerTable::Init ( const IndexTypeVector< FaceIndexFaceIndex, FaceType > & faces)

◆ IsDegenerated()

bool draco::CornerTable::IsDegenerated ( FaceIndexFaceIndex face) const

◆ IsOnBoundary()

bool draco::CornerTable::IsOnBoundary ( VertexIndex vert) const
inline
Here is the caller graph for this function:

◆ IsValid()

bool draco::CornerTable::IsValid ( CornerIndex c) const
inline

◆ IsVertexIsolated()

bool draco::CornerTable::IsVertexIsolated ( VertexIndex v) const
inline
Here is the caller graph for this function:

◆ LeftMostCorner()

CornerIndex draco::CornerTable::LeftMostCorner ( VertexIndex v) const
inline
Here is the caller graph for this function:

◆ LocalIndex()

int draco::CornerTable::LocalIndex ( CornerIndex corner) const
inline
Here is the caller graph for this function:

◆ MakeFaceInvalid()

void draco::CornerTable::MakeFaceInvalid ( FaceIndexFaceIndex face)
inline

◆ MakeVertexIsolated()

void draco::CornerTable::MakeVertexIsolated ( VertexIndex vert)
inline

◆ MapCornerToVertex()

void draco::CornerTable::MapCornerToVertex ( CornerIndex corner_id,
VertexIndex vert_id )
inline

◆ Next()

CornerIndex draco::CornerTable::Next ( CornerIndex corner) const
inline
Here is the caller graph for this function:

◆ num_corners()

int draco::CornerTable::num_corners ( ) const
inline
Here is the caller graph for this function:

◆ num_faces()

int draco::CornerTable::num_faces ( ) const
inline
Here is the caller graph for this function:

◆ num_vertices()

int draco::CornerTable::num_vertices ( ) const
inline
Here is the caller graph for this function:

◆ NumDegeneratedFaces()

int draco::CornerTable::NumDegeneratedFaces ( ) const
inline
Here is the caller graph for this function:

◆ NumIsolatedVertices()

int draco::CornerTable::NumIsolatedVertices ( ) const
inline
Here is the caller graph for this function:

◆ NumNewVertices()

int draco::CornerTable::NumNewVertices ( ) const
inline

◆ NumOriginalVertices()

int draco::CornerTable::NumOriginalVertices ( ) const
inline

◆ Opposite()

CornerIndex draco::CornerTable::Opposite ( CornerIndex corner) const
inline
Here is the caller graph for this function:

◆ Previous()

CornerIndex draco::CornerTable::Previous ( CornerIndex corner) const
inline
Here is the caller graph for this function:

◆ Reset() [1/2]

bool draco::CornerTable::Reset ( int num_faces)
Here is the caller graph for this function:

◆ Reset() [2/2]

bool draco::CornerTable::Reset ( int num_faces,
int num_vertices )

◆ SetFaceData()

void draco::CornerTable::SetFaceData ( FaceIndexFaceIndex face,
FaceType data )
inline

◆ SetLeftMostCorner()

void draco::CornerTable::SetLeftMostCorner ( VertexIndex vert,
CornerIndex corner )
inline
Here is the caller graph for this function:

◆ SetNumVertices()

void draco::CornerTable::SetNumVertices ( int num_vertices)
inline

◆ SetOppositeCorner()

void draco::CornerTable::SetOppositeCorner ( CornerIndex corner_id,
CornerIndex opp_corner_id )
inline
Here is the caller graph for this function:

◆ SetOppositeCorners()

void draco::CornerTable::SetOppositeCorners ( CornerIndex corner_0,
CornerIndex corner_1 )
inline

◆ SwingLeft()

CornerIndex draco::CornerTable::SwingLeft ( CornerIndex corner) const
inline
Here is the caller graph for this function:

◆ SwingRight()

CornerIndex draco::CornerTable::SwingRight ( CornerIndex corner) const
inline
Here is the caller graph for this function:

◆ UpdateFaceToVertexMap()

void draco::CornerTable::UpdateFaceToVertexMap ( const VertexIndex vertex)

◆ UpdateVertexToCornerMap()

void draco::CornerTable::UpdateVertexToCornerMap ( VertexIndex vert)
inline

◆ Valence() [1/2]

int draco::CornerTable::Valence ( CornerIndex c) const
inline

◆ Valence() [2/2]

int draco::CornerTable::Valence ( VertexIndex v) const
Here is the caller graph for this function:

◆ Vertex()

VertexIndex draco::CornerTable::Vertex ( CornerIndex corner) const
inline
Here is the caller graph for this function:

◆ VertexParent()

VertexIndex draco::CornerTable::VertexParent ( VertexIndex vertex) const
inline

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