Easy3D 2.6.1
Loading...
Searching...
No Matches
Element Class Reference

Model element (e.g., faces, vertices, edges) with optional properties. More...

#include <easy3d/fileio/ply_reader_writer.h>

Public Member Functions

 Element (const std::string &elem_name, std::size_t n_instances=0)
 Constructor to initialize the element with a name and number of instances.
 
std::string property_statistics () const
 Returns a string representation of the property statistics.
 

Public Attributes

std::string name
 The name of the element, e.g., "vertex", "face", "edge".
 
std::size_t num_instances
 The number of instances of the element.
 
std::vector< Vec3Propertyvec3_properties
 Properties for "point", "normal", "color", and vector fields.
 
std::vector< Vec2Propertyvec2_properties
 Properties for "texcoord".
 
std::vector< FloatPropertyfloat_properties
 Properties for scalar fields of float values.
 
std::vector< IntPropertyint_properties
 Properties for scalar fields of integer values.
 
std::vector< FloatListPropertyfloat_list_properties
 Properties for a list of float values.
 
std::vector< IntListPropertyint_list_properties
 Properties for a list of integer values.
 

Detailed Description

Model element (e.g., faces, vertices, edges) with optional properties.

Constructor & Destructor Documentation

◆ Element()

Element ( const std::string & elem_name,
std::size_t n_instances = 0 )
inlineexplicit

Constructor to initialize the element with a name and number of instances.

Parameters
elem_nameThe name of the element.
n_instancesThe number of instances of the element.

Member Function Documentation

◆ property_statistics()

std::string property_statistics ( ) const

Returns a string representation of the property statistics.

Returns
A string containing the property statistics.

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