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

#include <mesh.h>

Inheritance diagram for draco::Mesh:
Collaboration diagram for draco::Mesh:

Classes

struct  AttributeData

Public Types

typedef std::array< PointIndex, 3 > Face

Public Member Functions

 Mesh ()
void AddFace (const Face &face)
void SetFace (FaceIndexFaceIndex face_id, const Face &face)
void SetNumFaces (size_t num_faces)
FaceIndex::ValueType num_faces () const
const Face & face (FaceIndexFaceIndex face_id) const
void SetAttribute (int att_id, std::unique_ptr< PointAttribute > pa) override
void DeleteAttribute (int att_id) override
MeshAttributeElementType GetAttributeElementType (int att_id) const
void SetAttributeElementType (int att_id, MeshAttributeElementType et)
PointIndex CornerToPointId (int ci) const
PointIndex CornerToPointId (CornerIndex ci) const
Public Member Functions inherited from draco::PointCloud
 PointCloud ()
virtual ~PointCloud ()=default
int32_t NumNamedAttributes (GeometryAttribute::Type type) const
int32_t GetNamedAttributeId (GeometryAttribute::Type type) const
int32_t GetNamedAttributeId (GeometryAttribute::Type type, int i) const
const PointAttribute * GetNamedAttribute (GeometryAttribute::Type type) const
const PointAttribute * GetNamedAttribute (GeometryAttribute::Type type, int i) const
const PointAttribute * GetNamedAttributeByUniqueId (GeometryAttribute::Type type, uint32_t id) const
const PointAttribute * GetAttributeByUniqueId (uint32_t id) const
int32_t GetAttributeIdByUniqueId (uint32_t unique_id) const
int32_t num_attributes () const
const PointAttribute * attribute (int32_t att_id) const
PointAttribute * attribute (int32_t att_id)
int AddAttribute (std::unique_ptr< PointAttribute > pa)
int AddAttribute (const GeometryAttribute &att, bool identity_mapping, AttributeValueIndex::ValueType num_attribute_values)
std::unique_ptr< PointAttribute > CreateAttribute (const GeometryAttribute &att, bool identity_mapping, AttributeValueIndex::ValueType num_attribute_values) const
BoundingBox ComputeBoundingBox () const
void AddMetadata (std::unique_ptr< GeometryMetadata > metadata)
void AddAttributeMetadata (int32_t att_id, std::unique_ptr< AttributeMetadata > metadata)
const AttributeMetadata * GetAttributeMetadataByAttributeId (int32_t att_id) const
const AttributeMetadata * GetAttributeMetadataByStringEntry (const std::string &name, const std::string &value) const
int GetAttributeIdByMetadataEntry (const std::string &name, const std::string &value) const
const GeometryMetadata * GetMetadata () const
GeometryMetadata * metadata ()
PointIndex::ValueType num_points () const
void set_num_points (PointIndex::ValueType num)

Protected Member Functions

IndexTypeVector< FaceIndexFaceIndex, Face > & faces ()

Friends

struct MeshHasher

Member Typedef Documentation

◆ Face

typedef std::array<PointIndex, 3> draco::Mesh::Face

Constructor & Destructor Documentation

◆ Mesh()

Mesh::Mesh ( )
Here is the caller graph for this function:

Member Function Documentation

◆ AddFace()

void draco::Mesh::AddFace ( const Face & face)
inline
Here is the caller graph for this function:

◆ CornerToPointId() [1/2]

PointIndex draco::Mesh::CornerToPointId ( CornerIndex ci) const
inline

◆ CornerToPointId() [2/2]

PointIndex draco::Mesh::CornerToPointId ( int ci) const
inline
Here is the caller graph for this function:

◆ DeleteAttribute()

void draco::Mesh::DeleteAttribute ( int att_id)
inlineoverridevirtual

Reimplemented from draco::PointCloud.

◆ face()

const Face & draco::Mesh::face ( FaceIndexFaceIndex face_id) const
inline
Here is the caller graph for this function:

◆ faces()

IndexTypeVector< FaceIndexFaceIndex, Face > & draco::Mesh::faces ( )
inlineprotected

◆ GetAttributeElementType()

MeshAttributeElementType draco::Mesh::GetAttributeElementType ( int att_id) const
inline

◆ num_faces()

FaceIndex::ValueType draco::Mesh::num_faces ( ) const
inline
Here is the caller graph for this function:

◆ SetAttribute()

void draco::Mesh::SetAttribute ( int att_id,
std::unique_ptr< PointAttribute > pa )
inlineoverridevirtual

Reimplemented from draco::PointCloud.

◆ SetAttributeElementType()

void draco::Mesh::SetAttributeElementType ( int att_id,
MeshAttributeElementType et )
inline

◆ SetFace()

void draco::Mesh::SetFace ( FaceIndexFaceIndex face_id,
const Face & face )
inline

◆ SetNumFaces()

void draco::Mesh::SetNumFaces ( size_t num_faces)
inline

◆ MeshHasher

friend struct MeshHasher
friend

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