uvgVPCCenc 1.0.0
uvgVPCCenc is an open-source real-time V-PCC encoder library written in C++ from scratch.
Loading...
Searching...
No Matches
Classes | Enumerations | Functions | Variables
miniply Namespace Reference

The example application for uvgVPCCenc uses the external library miniply to parse the .ply files. More...

Classes

struct  PLYElement
 
struct  PLYProperty
 
class  PLYReader
 
struct  PLYTypeAlias
 
struct  Vec2
 
struct  Vec3
 

Enumerations

enum class  PLYFileType { ASCII , Binary , BinaryBigEndian }
 
enum class  PLYPropertyType {
  Char , UChar , Short , UShort ,
  Int , UInt , Float , Double ,
  None
}
 

Functions

uint32_t triangulate_polygon (uint32_t n, const float pos[], uint32_t numVerts, const int indices[], int dst[])
 

Variables

const char * kPLYVertexElement = "vertex"
 
const char * kPLYFaceElement = "face"
 

Detailed Description

The example application for uvgVPCCenc uses the external library miniply to parse the .ply files.

miniply - A simple and fast parser for PLY files

For details about the PLY format see:

Enumeration Type Documentation

◆ PLYFileType

enum class miniply::PLYFileType
strong
Enumerator
ASCII 
Binary 
BinaryBigEndian 

◆ PLYPropertyType

enum class miniply::PLYPropertyType
strong
Enumerator
Char 
UChar 
Short 
UShort 
Int 
UInt 
Float 
Double 
None 

Special value used in Element::listCountType to indicate a non-list property.

Function Documentation

◆ triangulate_polygon()

uint32_t miniply::triangulate_polygon ( uint32_t  n,
const float  pos[],
uint32_t  numVerts,
const int  indices[],
int  dst[] 
)

Given a polygon with n vertices, where n > 3, triangulate it and store the indices for the resulting triangles in dst. The pos parameter is the array of all vertex positions for the mesh; indices is the list of n indices for the polygon we're triangulating; and dst is where we write the new indices to.

The triangulation will always produce n - 2 triangles, so dst must have enough space for 3 * (n - 2) indices.

If n == 3, we simply copy the input indices to dst. If n < 3, nothing gets written to dst.

The return value is the number of triangles.

Here is the caller graph for this function:

Variable Documentation

◆ kPLYFaceElement

const char * miniply::kPLYFaceElement = "face"

◆ kPLYVertexElement

const char * miniply::kPLYVertexElement = "vertex"