\( \newcommand{\E}{\mathrm{E}} \) \( \newcommand{\A}{\mathrm{A}} \) \( \newcommand{\R}{\mathrm{R}} \) \( \newcommand{\N}{\mathrm{N}} \) \( \newcommand{\Q}{\mathrm{Q}} \) \( \newcommand{\Z}{\mathrm{Z}} \) \( \def\ccSum #1#2#3{ \sum_{#1}^{#2}{#3} } \def\ccProd #1#2#3{ \sum_{#1}^{#2}{#3} }\)
CGAL 4.10.1 - Point Set Processing
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
CGAL::Ply_reader Class Reference

#include <CGAL/IO/read_ply_points.h>

Definition

The PLY reader is initialized with the correct set of properties (along with their name tags and number types) based on the header of the PLY input file.

It loads all the points with their specific properties of the PLY input and delegates the interpretation to a user-specified PlyInterpreter.

Examples:
Point_set_processing_3/read_ply_points_with_colors_example.cpp.

Public Member Functions

template<typename Type >
bool does_tag_exist (const char *tag)
 
template<typename Type >
void assign (Type &t, const char *tag)
 

Member Function Documentation

template<typename Type >
void CGAL::Ply_reader::assign ( Type &  t,
const char *  tag 
)
Parameters
treference to store last read value of the property tag
tagname of the required property
Examples:
Point_set_processing_3/read_ply_points_with_colors_example.cpp.
template<typename Type >
bool CGAL::Ply_reader::does_tag_exist ( const char *  tag)
Template Parameters
Typetype of the property (ex: double, float, unsigned char, etc.)
Parameters
tagname of the property (ex: nx for x normal coordinate)
Returns
true if points inside the PLY input contain the property tag with type Type, false otherwise
Examples:
Point_set_processing_3/read_ply_points_with_colors_example.cpp.