I/O Functions for the Polygon File Format (PLY) . 
template<typename Graph , typename NamedParameters  = CGAL::parameters::Default_named_parameters>  bool  CGAL::IO::read_PLY  (std::istream &is, Graph &g, const NamedParameters &np=parameters::default_values ())  reads the graph g from the input stream, using the Polygon File Format (PLY) .     template<typename Graph , typename NamedParameters  = CGAL::parameters::Default_named_parameters>  bool  CGAL::IO::read_PLY  (const std::string &fname, Graph &g, const NamedParameters &np=parameters::default_values ())  reads the graph g from a file named fname, using the Polygon File Format (PLY) .     template<typename Graph , typename NamedParameters  = CGAL::parameters::Default_named_parameters>  bool  CGAL::IO::write_PLY  (std::ostream &os, const Graph &g, const std::string &comments, const NamedParameters &np=parameters::default_values ())  writes the graph in an output stream, using the Polygon File Format (PLY) .     template<typename Graph , typename NamedParameters  = CGAL::parameters::Default_named_parameters>  bool  CGAL::IO::write_PLY  (const std::string &fname, const Graph &g, const std::string &comments, const NamedParameters &np=parameters::default_values ())  writes the graph in the output file fname, using the Polygon File Format (PLY) .     
◆  [1/2] 
template<typename Graph , typename NamedParameters  = CGAL::parameters::Default_named_parameters> 
      
 
#include <CGAL/boost/graph/IO/PLY.h>
reads the graph g from a file named fname, using the Polygon File Format (PLY) . 
The data is expected to represent a 2-manifold (possibly with borders).
Template Parameters 
  
   
Parameters 
  
    fname the name of the input file  g the graph to be built from the input data  np optional Named Parameters  described below 
   
Optional Named Parameters 
  use_binary_mode    
indicates whether data should be read in binary (true) or in ASCII (false)  
Type:  Boolean  
Default:  true  
 
  
 
  vertex_point_map    
a property map associating points to the vertices of g  
Type:  a class model of WritablePropertyMap boost::graph_traits<Graph>::vertex_descriptor as key type and Point_3 as value type  
Default:  boost::get(CGAL::vertex_point, g)  
Extra:  If this parameter is omitted, an internal property map for CGAL::vertex_point_t Graph.  
 
  
 
  vertex_index_map    
a property map associating to each vertex of graph a unique index  
Type:  a class model of WritablePropertyMap boost::graph_traits<Graph>::vertex_descriptor as key type and std::size_t as value type  
Default:  vertex indices that may exist in the input will be ignored  
 
  
 
  vertex_color_map    
a property map associating colors to the vertices of g  
Type:  a class model of WritablePropertyMap boost::graph_traits<Graph>::vertex_descriptor as key type and CGAL::IO::Color  
Default:  vertex colors that may exist in the input will be ignored  
 
  
 
  face_color_map    
a property map associating colors to the faces of g  
Type:  a class model of WritablePropertyMap boost::graph_traits<Graph>::face_descriptor as key type and CGAL::IO::Color  
Default:  face colors that may exist in the input will be ignored  
 
  
 
  verbose    
whether extra information is printed when an incident occurs during reading  
Type:  Boolean  
Default:  false  
 
   
 
Returns true if reading was successful and the resulting mesh is valid, false otherwise.See also Overloads of this function for specific models of the concept FaceGraph   
 
◆  [2/2] 
template<typename Graph , typename NamedParameters  = CGAL::parameters::Default_named_parameters> 
      
 
#include <CGAL/boost/graph/IO/PLY.h>
reads the graph g from the input stream, using the Polygon File Format (PLY) . 
The data is expected to represent a 2-manifold (possibly with borders).
Attention To read a binary file, the flag std::ios::binary must be set during the creation of the ifstream. Template Parameters 
  
   
Parameters 
  
    is the input stream  g the graph to be built from the input data  np optional Named Parameters  described below 
   
Optional Named Parameters 
  vertex_point_map    
a property map associating points to the vertices of g  
Type:  a class model of WritablePropertyMap boost::graph_traits<Graph>::vertex_descriptor as key type and Point_3 as value type  
Default:  boost::get(CGAL::vertex_point, g)  
Extra:  If this parameter is omitted, an internal property map for CGAL::vertex_point_t Graph.  
 
  
 
  vertex_index_map    
a property map associating to each vertex of graph a unique index  
Type:  a class model of WritablePropertyMap boost::graph_traits<Graph>::vertex_descriptor as key type and std::size_t as value type  
Default:  vertex indices that may exist in the input will be ignored  
 
  
 
  vertex_color_map    
a property map associating colors to the vertices of g  
Type:  a class model of WritablePropertyMap boost::graph_traits<Graph>::vertex_descriptor as key type and CGAL::IO::Color  
Default:  vertex colors that may exist in the input will be ignored  
 
  
 
  face_color_map    
a property map associating colors to the faces of g  
Type:  a class model of WritablePropertyMap boost::graph_traits<Graph>::face_descriptor as key type and CGAL::IO::Color  
Default:  face colors that may exist in the input will be ignored  
 
  
 
  verbose    
whether extra information is printed when an incident occurs during reading  
Type:  Boolean  
Default:  false  
 
   
 
Returns true if reading was successful and the resulting mesh is valid, false otherwise.See also Overloads of this function for specific models of the concept FaceGraph   
 
◆  [1/2] 
template<typename Graph , typename NamedParameters  = CGAL::parameters::Default_named_parameters> 
      
        
          bool CGAL::IO::write_PLY  
          ( 
          const std::string &  
          fname ,  
        
          const Graph &  
          g ,  
        
          const std::string &  
          comments ,  
        
          const NamedParameters &  
          np  = parameters::default_values () 
        
          ) 
           
      
 
#include <CGAL/boost/graph/IO/PLY.h>
writes the graph in the output file fname, using the Polygon File Format (PLY) . 
Template Parameters 
  
   
Parameters 
  
    fname the name of the output file  g the graph to be written  comments a string included line by line in the header of the PLY stream (each line will be precedeed by "comment ")  np optional Named Parameters  described below 
   
Optional Named Parameters 
  use_binary_mode    
indicates whether data should be written in binary (true) or in ASCII (false)  
Type:  Boolean  
Default:  true  
 
  
 
  vertex_point_map    
a property map associating points to the vertices of g  
Type:  a class model of ReadablePropertyMap boost::graph_traits<Graph>::vertex_descriptor as key type and Point_3 as value type  
Default:  boost::get(CGAL::vertex_point, g)  
Extra:  If this parameter is omitted, an internal property map for CGAL::vertex_point_t Graph.  
 
  
 
  vertex_index_map    
a property map associating to each vertex of graph a unique index between 0 and num_vertices(graph) - 1  
Type:  a class model of ReadablePropertyMap boost::graph_traits<Graph>::vertex_descriptor as key type and std::size_t as value type  
Default:  no vertex indices in the output  
 
  
 
  vertex_color_map    
a property map associating colors to the vertices of g  
Type:  a class model of ReadablePropertyMap boost::graph_traits<Graph>::vertex_descriptor as key type and CGAL::IO::Color  
Default:  no vertex color in the output  
 
  
 
  face_color_map    
a property map associating colors to the faces of g  
Type:  a class model of ReadablePropertyMap boost::graph_traits<Graph>::face_descriptor as key type and CGAL::IO::Color  
Default:  no face color in the output  
 
  
 
  stream_precision    
a parameter used to set the precision (i.e. how many digits are generated) of the output stream  
Type:  int  
Default:  6  
Extra:  This parameter is only meaningful while using ASCII encoding.  
 
   
 
Returns true if writing was successful, false otherwise.  
 
◆  [2/2] 
template<typename Graph , typename NamedParameters  = CGAL::parameters::Default_named_parameters> 
      
        
          bool CGAL::IO::write_PLY  
          ( 
          std::ostream &  
          os ,  
        
          const Graph &  
          g ,  
        
          const std::string &  
          comments ,  
        
          const NamedParameters &  
          np  = parameters::default_values () 
        
          ) 
           
      
 
#include <CGAL/boost/graph/IO/PLY.h>
writes the graph in an output stream, using the Polygon File Format (PLY) . 
Attention To write to a binary file, the flag std::ios::binary must be set during the creation of the ofstream, and the IO::Mode BINARY. Template Parameters 
  
   
Parameters 
  
    os the output stream  g the graph to be written  comments a string included line by line in the header of the PLY stream (each line will be precedeed by "comment ")  np optional Named Parameters  described below 
   
Optional Named Parameters 
  vertex_point_map    
a property map associating points to the vertices of g  
Type:  a class model of ReadablePropertyMap boost::graph_traits<Graph>::vertex_descriptor as key type and Point_3 as value type  
Default:  boost::get(CGAL::vertex_point, g)  
Extra:  If this parameter is omitted, an internal property map for CGAL::vertex_point_t Graph.  
 
  
 
  vertex_index_map    
a property map associating to each vertex of graph a unique index  
Type:  a class model of WritablePropertyMap boost::graph_traits<Graph>::vertex_descriptor as key type and std::size_t as value type  
Default:  vertex indices that may exist in the input will be ignored  
 
  
 
  vertex_color_map    
a property map associating colors to the vertices of g  
Type:  a class model of WritablePropertyMap boost::graph_traits<Graph>::vertex_descriptor as key type and CGAL::IO::Color  
Default:  vertex colors that may exist in the input will be ignored  
 
  
 
  face_color_map    
a property map associating colors to the faces of g  
Type:  a class model of WritablePropertyMap boost::graph_traits<Graph>::face_descriptor as key type and CGAL::IO::Color  
Default:  face colors that may exist in the input will be ignored  
 
  
 
  stream_precision    
a parameter used to set the precision (i.e. how many digits are generated) of the output stream  
Type:  int  
Default:  the precision of the stream os  
Extra:  This parameter is only meaningful while using ASCII encoding.  
 
   
 
Returns true if writing was successful, false otherwise.