Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
ph::PlyProperty Struct Referencefinal

PLY property storage. More...

#include <PlyFile.h>

Public Member Functions

 PlyProperty ()
 
bool isList () const
 
bool isFixedSizeList () const
 

Public Attributes

std::string name
 
EPlyDataType dataType
 
EPlyDataType listSizeType
 
std::size_t strideOffset
 
std::size_t fixedListSize
 
std::vector< std::byte > rawListBuffer
 
std::vector< std::size_t > listSizesPrefixSum
 

Detailed Description

PLY property storage.

Constructor & Destructor Documentation

◆ PlyProperty()

ph::PlyProperty::PlyProperty ( )

Member Function Documentation

◆ isFixedSizeList()

bool ph::PlyProperty::isFixedSizeList ( ) const

◆ isList()

bool ph::PlyProperty::isList ( ) const

Member Data Documentation

◆ dataType

EPlyDataType ph::PlyProperty::dataType

◆ fixedListSize

std::size_t ph::PlyProperty::fixedListSize

◆ listSizesPrefixSum

std::vector<std::size_t> ph::PlyProperty::listSizesPrefixSum

For variable-sized list to calculate byte offset and list size in O(1). Not needed for fixed size list.

◆ listSizeType

EPlyDataType ph::PlyProperty::listSizeType

◆ name

std::string ph::PlyProperty::name

◆ rawListBuffer

std::vector<std::byte> ph::PlyProperty::rawListBuffer

Raw data storage for a single list property only. Do not contain size information. See PlyElement::rawBuffer for why lists have their own data storages.

◆ strideOffset

std::size_t ph::PlyProperty::strideOffset

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