Point Cloud Library (PCL)  1.14.1-dev
List of all members | Public Member Functions | Public Attributes
pcl::MTLReader Class Reference

#include <pcl/io/obj_io.h>

Public Member Functions

 MTLReader ()
 empty constructor More...
 
virtual ~MTLReader ()=default
 empty destructor More...
 
int read (const std::string &filename)
 Read a MTL file given its full path. More...
 
int read (const std::string &obj_file_name, const std::string &mtl_file_name)
 Read a MTL file given an OBJ file full path and the MTL file name. More...
 
std::vector< pcl::TexMaterial >::const_iterator getMaterial (const std::string &material_name) const
 

Public Attributes

std::vector< pcl::TexMaterialmaterials_
 materials array More...
 

Detailed Description

Definition at line 47 of file obj_io.h.

Constructor & Destructor Documentation

◆ MTLReader()

pcl::MTLReader::MTLReader ( )

empty constructor

◆ ~MTLReader()

virtual pcl::MTLReader::~MTLReader ( )
virtualdefault

empty destructor

Member Function Documentation

◆ getMaterial()

std::vector<pcl::TexMaterial>::const_iterator pcl::MTLReader::getMaterial ( const std::string &  material_name) const

◆ read() [1/2]

int pcl::MTLReader::read ( const std::string &  filename)

Read a MTL file given its full path.

Parameters
[in]filenamefull path to MTL file
Returns
0 on success < 0 else.

◆ read() [2/2]

int pcl::MTLReader::read ( const std::string &  obj_file_name,
const std::string &  mtl_file_name 
)

Read a MTL file given an OBJ file full path and the MTL file name.

Parameters
[in]obj_file_namefull path to OBJ file
[in]mtl_file_nameMTL file name
Returns
0 on success < 0 else.

Member Data Documentation

◆ materials_

std::vector<pcl::TexMaterial> pcl::MTLReader::materials_

materials array

Definition at line 75 of file obj_io.h.


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