CGAL 6.0 - Point Set Processing
Loading...
Searching...
No Matches
CGAL::IO Namespace Reference

Classes

struct  PLY_property
 Class used to identify a PLY property as a type and a name. More...
 

Functions

template<typename PointMap >
std::tuple< PointMap, typename Kernel_traits< typename PointMap::value_type >::Kernel::Construct_point_3, LAS_property::X, LAS_property::Y, LAS_property::Z > make_las_point_reader (PointMap point_map)
 generates a LAS property handler to read 3D points.
 
template<typename OutputIteratorValueType , typename PointOutputIterator , typename ... PropertyHandler>
bool read_LAS_with_properties (std::istream &is, PointOutputIterator output, PropertyHandler &&... properties)
 reads user-selected points properties from a .las or .laz stream.
 
template<typename OutputIteratorValueType , typename PointOutputIterator , typename NamedParameters = CGAL::parameters::Default_named_parameters>
bool read_LAS (std::istream &is, PointOutputIterator output, const NamedParameters &np=parameters::default_values())
 reads points (position only) using the IOStreamLAS.
 
template<typename OutputIteratorValueType , typename PointOutputIterator , typename NamedParameters = CGAL::parameters::Default_named_parameters>
bool read_LAS (const std::string &filename, PointOutputIterator output, const NamedParameters &np=parameters::default_values())
 reads points (position only) using the IOStreamLAS.
 
template<typename OutputIteratorValueType , typename PointOutputIterator , typename NamedParameters = CGAL::parameters::Default_named_parameters>
bool read_OFF (std::istream &is, PointOutputIterator output, const NamedParameters &np=parameters::default_values())
 reads points (positions + normals, if available), using the IOStreamOFF.
 
template<typename OutputIteratorValueType , typename PointOutputIterator , typename NamedParameters = CGAL::parameters::Default_named_parameters>
bool read_OFF (const std::string &fname, PointOutputIterator output, const NamedParameters &np=parameters::default_values())
 reads points (positions + normals, if available), using the IOStreamOFF.
 
template<typename PointMap >
std::tuple< PointMap, typename Kernel_traits< typename PointMap::value_type >::Kernel::Construct_point_3, PLY_property< FT >, PLY_property< FT >, PLY_property< FT > > make_ply_point_reader (PointMap point_map)
 Generates a PLY property handler to read 3D points.
 
template<typename VectorMap >
std::tuple< VectorMap, typename Kernel_traits< typename VectorMap::value_type >::Kernel::Construct_vector_3, PLY_property< FT >, PLY_property< FT >, PLY_property< FT > > make_ply_normal_reader (VectorMap normal_map)
 Generates a PLY property handler to read 3D normal vectors.
 
template<typename OutputIteratorValueType , typename PointOutputIterator , typename ... PropertyHandler>
bool read_PLY_with_properties (std::istream &is, PointOutputIterator output, PropertyHandler &&... properties)
 reads user-selected points properties from a .ply stream (ASCII or binary).
 
template<typename OutputIteratorValueType , typename PointOutputIterator , typename NamedParameters = CGAL::parameters::Default_named_parameters>
bool read_PLY (std::istream &is, PointOutputIterator output, const NamedParameters &np=parameters::default_values())
 reads points (positions + normals, if available), using the IOStreamPLY.
 
template<typename OutputIteratorValueType , typename PointOutputIterator , typename NamedParameters = CGAL::parameters::Default_named_parameters>
bool read_PLY (const std::string &fname, PointOutputIterator output, const NamedParameters &np=parameters::default_values())
 reads points (positions + normals, if available), using the IOStreamPLY.
 
template<typename OutputIteratorValueType , typename PointOutputIterator , typename NamedParameters = parameters::Default_named_parameters>
bool read_points (const std::string &fname, PointOutputIterator output, const NamedParameters &np=parameters::default_values())
 reads the point set from an input file.
 
template<typename OutputIteratorValueType , typename OutputIterator , typename NamedParameters = CGAL::parameters::Default_named_parameters>
bool read_XYZ (std::istream &is, OutputIterator output, const NamedParameters &np=parameters::default_values())
 reads points (positions + normals, if available), using the IOStreamXYZ.
 
template<typename OutputIteratorValueType , typename OutputIterator , typename NamedParameters = CGAL::parameters::Default_named_parameters>
bool read_XYZ (const std::string &fname, OutputIterator output, const NamedParameters &np=parameters::default_values())
 reads points (positions + normals, if available), using the IOStreamXYZ.
 
template<typename PointMap >
std::tuple< PointMap, LAS_property::X, LAS_property::Y, LAS_property::Z > make_las_point_writer (PointMap point_map)
 generates a LAS property handler to write 3D points.
 
template<typename PointRange , typename PointMap , typename ... PropertyHandler>
bool write_LAS_with_properties (std::ostream &os, const PointRange &points, std::tuple< PointMap, LAS_property::X, LAS_property::Y, LAS_property::Z > point_property, PropertyHandler &&... properties)
 writes the range of points with properties to a .las stream.
 
template<typename PointRange , typename NamedParameters = CGAL::parameters::Default_named_parameters>
bool write_LAS (std::ostream &os, const PointRange &points, const NamedParameters &np=parameters::default_values())
 writes the range of points (positions only), using the IOStreamLAS.
 
template<typename PointRange , typename NamedParameters = CGAL::parameters::Default_named_parameters>
bool write_LAS (const std::string &filename, const PointRange &points, const NamedParameters &np=parameters::default_values())
 writes the range of points (positions only), using the IOStreamLAS.
 
template<typename PointRange , typename NamedParameters = CGAL::parameters::Default_named_parameters>
bool write_OFF (std::ostream &os, const PointRange &points, const NamedParameters &np=parameters::default_values())
 writes the range of points (positions + normals, if available), using the IOStreamOFF.
 
template<typename PointRange , typename NamedParameters = CGAL::parameters::Default_named_parameters>
bool write_OFF (const std::string &filename, const PointRange &points, const NamedParameters &np=parameters::default_values())
 writes the range of points (positions + normals, if available), using the IOStreamOFF.
 
template<typename PointMap >
std::tuple< PointMap, PLY_property< FT >, PLY_property< FT >, PLY_property< FT > > make_ply_point_writer (PointMap point_map)
 Generates a PLY property handler to write 3D points.
 
template<typename VectorMap >
std::tuple< VectorMap, PLY_property< FT >, PLY_property< FT >, PLY_property< FT > > make_ply_normal_writer (VectorMap normal_map)
 Generates a PLY property handler to write 3D normal vectors.
 
template<typename PointRange , typename ... PropertyHandler>
bool write_PLY_with_properties (std::ostream &os, const PointRange &points, PropertyHandler &&... properties)
 writes the range of points with properties using IOStreamPLY.
 
template<typename PointRange , typename NamedParameters = CGAL::parameters::Default_named_parameters>
bool write_PLY (std::ostream &os, const PointRange &points, const NamedParameters &np=parameters::default_values())
 writes the range of points (positions + normals, if available) using IOStreamPLY.
 
template<typename PointRange , typename NamedParameters = CGAL::parameters::Default_named_parameters>
bool write_PLY (const std::string &filename, const PointRange &points, const NamedParameters &np=parameters::default_values())
 writes the range of points (positions + normals, if available) using IOStreamPLY.
 
template<typename PointRange , typename NamedParameters = CGAL::parameters::Default_named_parameters>
bool write_points (const std::string &fname, const PointRange &points, const NamedParameters &np=parameters::default_values(),)
 writes the range of points with properties to a file.
 
template<typename PointRange , typename NamedParameters = CGAL::parameters::Default_named_parameters>
bool write_XYZ (std::ostream &os, const PointRange &points, const NamedParameters &np=parameters::default_values())
 writes the range of points (positions + normals, if available), using the IOStreamXYZ.
 
template<typename PointRange , typename NamedParameters = CGAL::parameters::Default_named_parameters>
bool write_XYZ (const std::string &filename, const PointRange &points, const NamedParameters &np=parameters::default_values())
 writes the range of points (positions + normals, if available), using the IOStreamXYZ.