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

Classes

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

Enumerations

enum  Mode
 

Functions

Output_rep< T > oformat (const T &t)
 
Output_rep< T, F > oformat (const T &t, F)
 
Input_rep< T > iformat (T &t)
 
Mode get_mode (std::ios &s)
 
Mode set_ascii_mode (std::ios &s)
 
Mode set_binary_mode (std::ios &s)
 
Mode set_pretty_mode (std::ios &s)
 
Mode set_mode (std::ios &s, Mode m)
 
bool is_pretty (std::ios &s)
 
bool is_ascii (std::ios &s)
 
bool is_binary (std::ios &s)
 
bool read_polygon_soup (const std::string &fname, PointRange &points, PolygonRange &polygons, const NamedParameters &np=parameters::default_values())
 
bool write_polygon_soup (const std::string &fname, const PointRange &points, const PolygonRange &polygons, const NamedParameters &np=parameters::default_values())
 
bool read_STL (std::istream &is, PointRange &points, TriangleRange &facets, const NamedParameters &np=parameters::default_values())
 
bool read_STL (const std::string &fname, PointRange &points, TriangleRange &facets, const NamedParameters &np=parameters::default_values())
 
bool write_STL (std::ostream &os, const PointRange &points, const TriangleRange &facets, const NamedParameters &np=parameters::default_values())
 
bool write_STL (const std::string &fname, const PointRange &points, const TriangleRange &facets, const NamedParameters &np=parameters::default_values())
 
bool read_PLY (std::istream &is, PointRange &points, PolygonRange &polygons, const NamedParameters &np=parameters::default_values())
 
bool read_PLY (const std::string &fname, PointRange &points, PolygonRange &polygons, const NamedParameters &np=parameters::default_values())
 
bool write_PLY (std::ostream &out, const PointRange &points, const PolygonRange &polygons, const NamedParameters &np=parameters::default_values())
 
bool write_PLY (const std::string &fname, const PointRange &points, const PolygonRange &polygons, const NamedParameters &np=parameters::default_values())
 
bool read_OBJ (std::istream &is, PointRange &points, PolygonRange &polygons, const NamedParameters &np=parameters::default_values())
 
bool read_OBJ (const std::string &fname, PointRange &points, PolygonRange &polygons, const NamedParameters &np=parameters::default_values())
 
bool write_OBJ (std::ostream &os, const PointRange &points, const PolygonRange &polygons, const NamedParameters &np=parameters::default_values())
 
bool write_OBJ (const std::string &fname, const PointRange &points, const PolygonRange &polygons, const NamedParameters &np=parameters::default_values())
 
bool read_OFF (std::istream &is, PointRange &points, PolygonRange &polygons, const NamedParameters &np=parameters::default_values())
 
bool read_OFF (const std::string &fname, PointRange &points, PolygonRange &polygons, const NamedParameters &np=parameters::default_values())
 
bool write_OFF (std::ostream &os, const PointRange &points, const PolygonRange &polygons, const NamedParameters &np=parameters::default_values())
 
bool write_OFF (const std::string &fname, const PointRange &points, const PolygonRange &polygons, const NamedParameters &np=parameters::default_values())
 
bool read_VTP (const std::string &fname, PointRange &points, PolygonRange &polygons)
 
bool write_VTP (std::ostream &os, const PointRange &points, const PolygonRange &polygons, const NamedParameters &np=parameters::default_values())
 
bool write_VTP (const std::string &fname, const PointRange &points, const PolygonRange &polygons, const NamedParameters &np=parameters::default_values())
 
bool read_GOCAD (std::istream &is, PointRange &points, PolygonRange &polygons, const NamedParameters &np=parameters::default_values())
 
bool read_GOCAD (const std::string &fname, PointRange &points, PolygonRange &polygons, const NamedParameters &np=parameters::default_values())
 
bool write_GOCAD (std::ostream &os, const PointRange &points, const PolygonRange &polygons, const NamedParameters &np=parameters::default_values())
 
bool write_GOCAD (const std::string &fname, const PointRange &points, const PolygonRange &polygons, const NamedParameters &np=parameters::default_values())
 
bool read_point_WKT (std::istream &in, Point &point)
 
bool read_multi_point_WKT (std::istream &in, MultiPoint &mp)
 
bool read_linestring_WKT (std::istream &in, LineString &polyline)
 
bool read_multi_linestring_WKT (std::istream &in, MultiLineString &mls)
 
bool read_polygon_WKT (std::istream &in, Polygon &polygon)
 
bool read_multi_polygon_WKT (std::istream &in, MultiPolygon &polygons)
 
std::ostream & write_point_WKT (std::ostream &out, const Point &point)
 
std::ostream & write_polygon_WKT (std::ostream &out, const Polygon &poly)
 
std::ostream & write_linestring_WKT (std::ostream &out, LineString ls)
 
std::ostream & write_multi_point_WKT (std::ostream &out, MultiPoint &mp)
 
std::ostream & write_multi_polygon_WKT (std::ostream &out, MultiPolygon &polygons)
 
std::ostream & write_multi_linestring_WKT (std::ostream &out, MultiLineString &mls)
 
bool read_WKT (std::istream &is, MultiPoint &points, MultiLineString &polylines, MultiPolygon &polygons)
 
bool read_3MF (const std::string &fname, PointRanges &all_points, TriangleRanges &all_triangles, ColorRanges &all_colors, std::vector< std::string > &names)
 
bool write_3MF (const std::string &fname, const PointRanges &all_points, const TriangleRanges &all_triangles, const std::vector< std::string > &names)
 
bool read_polygon_mesh (const std::string &fname, Graph &g, const NamedParameters &np=parameters::default_values())
 
bool write_polygon_mesh (const std::string &fname, Graph &g, const NamedParameters &np=parameters::default_values())
 
bool read_STL (std::istream &is, Graph &g, const NamedParameters &np)
 
bool read_STL (const std::string &fname, Graph &g, const NamedParameters &np=parameters::default_values())
 
bool write_STL (std::ostream &os, const Graph &g, const NamedParameters &np=parameters::default_values())
 
bool write_STL (const std::string &fname, const Graph &g, const NamedParameters &np=parameters::default_values())
 
bool read_PLY (std::istream &is, Graph &g, const NamedParameters &np=parameters::default_values())
 
bool read_PLY (const std::string &fname, Graph &g, const NamedParameters &np=parameters::default_values())
 
bool write_PLY (std::ostream &os, const Graph &g, const std::string &comments, const NamedParameters &np=parameters::default_values())
 
bool write_PLY (const std::string &fname, const Graph &g, const std::string &comments, const NamedParameters &np=parameters::default_values())
 
bool read_OBJ (std::istream &is, Graph &g, const NamedParameters &np=parameters::default_values())
 
bool read_OBJ (const std::string &fname, Graph &g, const NamedParameters &np=parameters::default_values())
 
bool write_OBJ (std::ostream &os, const Graph &g, const NamedParameters &np=parameters::default_values())
 
bool write_OBJ (const std::string &fname, const Graph &g, const NamedParameters &np=parameters::default_values())
 
bool read_OFF (std::istream &is, Graph &g, const NamedParameters &np=parameters::default_values())
 
bool read_OFF (const std::string &fname, Graph &g, const NamedParameters &np=parameters::default_values())
 
bool write_OFF (std::ostream &os, const Graph &g, const NamedParameters &np=parameters::default_values())
 
bool write_OFF (const std::string &fname, const Graph &g, const NamedParameters &np=parameters::default_values())
 
bool read_VTP (const std::string &fname, Graph &g, const NamedParameters &np=parameters::default_values())
 
bool write_VTP (std::ostream &os, const Graph &g, const NamedParameters &np=parameters::default_values())
 
bool write_VTP (const std::string &fname, const Graph &g, const NamedParameters &np=parameters::default_values())
 
bool read_GOCAD (std::istream &is, std::pair< std::string, std::string > &name_and_color, Graph &g, const NamedParameters &np=parameters::default_values())
 
bool read_GOCAD (const std::string &fname, std::pair< std::string, std::string > &name_and_color, Graph &g, const NamedParameters &np=parameters::default_values())
 
bool write_GOCAD (std::ostream &os, const char *name, const Graph &g, const NamedParameters &np=parameters::default_values())
 
bool write_GOCAD (std::ostream &os, const Graph &g, const NamedParameters &np=parameters::default_values())
 
bool write_GOCAD (const std::string &fname, const Graph &g, const NamedParameters &np=parameters::default_values())
 
bool write_WRL (std::ostream &os, const Graph &g, const NamedParameters &np=parameters::default_values())
 
bool write_WRL (const std::string &fname, const Graph &g, const NamedParameters &np=parameters::default_values())
 
bool write_3MF (const std::string &filename, const GraphRange &gs, const std::vector< std::string > &names)
 
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 LAS (Lidar) File Format.
 
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 LAS (Lidar) File Format.
 
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 Object File Format (OFF).
 
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 Object File Format (OFF).
 
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 Polygon File Format (PLY).
 
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 Polygon File Format (PLY).
 
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 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 LAS (Lidar) File Format.
 
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())
 Saves the range of points (positions only), using the LAS (Lidar) File Format.
 
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 Object File Format (OFF).
 
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 Object File Format (OFF).
 
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 Polygon File Format (PLY).
 
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 Polygon File Format (PLY).
 
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 Polygon File Format (PLY).
 
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 XYZ File Format.
 
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 XYZ File Format.