- a property map associating points to the elements of the point range
-
Type: a model of
WritablePropertyMapwith value typegeom_traits::Point_3 -
Default:
CGAL::Identity_property_map<geom_traits::Point_3>
|
CGAL 6.2 - IO Streams
|
I/O Functions for the Object File Format (OFF).
Functions | |
| template<typename PointRange , typename PolygonRange , typename NamedParameters = CGAL::parameters::Default_named_parameters> | |
| bool | CGAL::IO::read_OFF (std::istream &is, PointRange &points, PolygonRange &polygons, const NamedParameters &np=parameters::default_values()) |
reads the content of is into points and polygons, using the Object File Format (OFF). | |
| template<typename PointRange , typename PolygonRange , typename NamedParameters = CGAL::parameters::Default_named_parameters> | |
| bool | CGAL::IO::read_OFF (const std::string &fname, PointRange &points, PolygonRange &polygons, const NamedParameters &np=parameters::default_values()) |
reads the content of the file fname into points and polygons, using the Object File Format (OFF). | |
| template<typename PointRange , typename PolygonRange , typename NamedParameters = CGAL::parameters::Default_named_parameters> | |
| bool | CGAL::IO::write_OFF (std::ostream &os, const PointRange &points, const PolygonRange &polygons, const NamedParameters &np=parameters::default_values()) |
writes the content of points and polygons in os, using the Object File Format (OFF). | |
| template<typename PointRange , typename PolygonRange , typename NamedParameters = CGAL::parameters::Default_named_parameters> | |
| bool | CGAL::IO::write_OFF (const std::string &fname, const PointRange &points, const PolygonRange &polygons, const NamedParameters &np=parameters::default_values()) |
writes the content of points and polygons in the file fname, using the Object File Format (OFF). | |
| template<typename OutputIteratorValueType , typename PointOutputIterator , typename NamedParameters = CGAL::parameters::Default_named_parameters> | |
| bool | CGAL::IO::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 | CGAL::IO::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 PointRange , typename NamedParameters = CGAL::parameters::Default_named_parameters> | |
| bool | CGAL::IO::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 | CGAL::IO::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). | |
| bool CGAL::IO::read_OFF | ( | const std::string & | fname, |
| PointOutputIterator | output, | ||
| const NamedParameters & | np = parameters::default_values() |
||
| ) |
#include <CGAL/IO/OFF.h>
reads points (positions + normals, if available), using the Object File Format (OFF).
| OutputIteratorValueType | type of objects that can be put in PointOutputIterator. It must be a model of DefaultConstructible and defaults to value_type_traits<PointOutputIterator>::type. It can be omitted when the default is fine. |
| PointOutputIterator | iterator over output points. |
| NamedParameters | a sequence of Named Parameters |
| fname | input file name |
| output | output iterator over points |
| np | optional sequence of Named Parameters among the ones listed below. |
| |
| |
|
true if reading was successful, false otherwise.| bool CGAL::IO::read_OFF | ( | const std::string & | fname, |
| PointRange & | points, | ||
| PolygonRange & | polygons, | ||
| const NamedParameters & | np = parameters::default_values() |
||
| ) |
#include <CGAL/IO/OFF.h>
reads the content of the file fname into points and polygons, using the Object File Format (OFF).
| PointRange | a model of the concept RandomAccessContainer whose value type is the point type |
| PolygonRange | a model of the concepts SequenceContainer and BackInsertionSequence whose value_type is itself a model of the concept SequenceContainer and BackInsertionSequence whose value_type is an unsigned integer type convertible to std::size_t |
| NamedParameters | a sequence of Named Parameters |
| fname | the path to the input file |
| points | points of the soup of polygons |
| polygons | a range of polygons. Each element in it describes a polygon using the indices of the points in points. |
| np | optional Named Parameters described below |
|
true if the reading was successful, false otherwise. | bool CGAL::IO::read_OFF | ( | std::istream & | is, |
| PointOutputIterator | output, | ||
| const NamedParameters & | np = parameters::default_values() |
||
| ) |
#include <CGAL/IO/OFF.h>
reads points (positions + normals, if available), using the Object File Format (OFF).
| OutputIteratorValueType | type of objects that can be put in PointOutputIterator. It must be a model of DefaultConstructible and defaults to value_type_traits<PointOutputIterator>::type. It can be omitted when the default is fine. |
| PointOutputIterator | iterator over output points. |
| NamedParameters | a sequence of Named Parameters |
| is | input stream |
| output | output iterator over points |
| np | an optional sequence of Named Parameters among the ones listed below |
| |
| |
|
true if reading was successful, false otherwise.| bool CGAL::IO::read_OFF | ( | std::istream & | is, |
| PointRange & | points, | ||
| PolygonRange & | polygons, | ||
| const NamedParameters & | np = parameters::default_values() |
||
| ) |
#include <CGAL/IO/OFF.h>
reads the content of is into points and polygons, using the Object File Format (OFF).
| PointRange | a model of the concepts RandomAccessContainer and BackInsertionSequence whose value type is the point type |
| PolygonRange | a model of the concepts SequenceContainer and BackInsertionSequence whose value_type is itself a model of the concept SequenceContainer and BackInsertionSequence whose value_type is an unsigned integer type convertible to std::size_t |
| NamedParameters | a sequence of Named Parameters |
| is | the input stream |
| points | points of the soup of polygons |
| polygons | a range of polygons. Each element in it describes a polygon using the indices of the points in points. |
| np | optional Named Parameters described below |
|
true if the reading was successful, false otherwise. | bool CGAL::IO::write_OFF | ( | const std::string & | filename, |
| const PointRange & | points, | ||
| const NamedParameters & | np = parameters::default_values() |
||
| ) |
#include <CGAL/IO/OFF.h>
writes the range of points (positions + normals, if available), using the Object File Format (OFF).
| PointRange | is a model of ConstRange. The value type of its iterator is the key type of the named parameter point_map. |
| NamedParameters | a sequence of Named Parameters |
| filename | the path to the output file |
| points | input point range |
| np | an optional sequence of Named Parameters among the ones listed below |
| |
| |
| |
|
true if writing was successful, false otherwise.| bool CGAL::IO::write_OFF | ( | const std::string & | fname, |
| const PointRange & | points, | ||
| const PolygonRange & | polygons, | ||
| const NamedParameters & | np = parameters::default_values() |
||
| ) |
#include <CGAL/IO/OFF.h>
writes the content of points and polygons in the file fname, using the Object File Format (OFF).
| PointRange | a model of the concept RandomAccessContainer whose value type is the point type |
| PolygonRange | a model of the concept SequenceContainer whose value_type is itself a model of the concept SequenceContainer whose value_type is an unsigned integer type convertible to std::size_t |
| NamedParameters | a sequence of Named Parameters |
| fname | the path to the output file |
| points | points of the soup of polygons |
| polygons | a range of polygons. Each element in it describes a polygon using the indices of the points in points. |
| np | optional sequence of Named Parameters among the ones listed below |
| |
|
true if the writing was successful, false otherwise. | bool CGAL::IO::write_OFF | ( | std::ostream & | os, |
| const PointRange & | points, | ||
| const NamedParameters & | np = parameters::default_values() |
||
| ) |
#include <CGAL/IO/OFF.h>
writes the range of points (positions + normals, if available), using the Object File Format (OFF).
| PointRange | is a model of ConstRange. The value type of its iterator is the key type of the named parameter point_map. |
| NamedParameters | a sequence of Named Parameters |
| os | output stream |
| points | input point range |
| np | an optional sequence of Named Parameters among the ones listed below |
| |
| |
| |
|
true if writing was successful, false otherwise. | bool CGAL::IO::write_OFF | ( | std::ostream & | os, |
| const PointRange & | points, | ||
| const PolygonRange & | polygons, | ||
| const NamedParameters & | np = parameters::default_values() |
||
| ) |
#include <CGAL/IO/OFF.h>
writes the content of points and polygons in os, using the Object File Format (OFF).
| PointRange | a model of the concept RandomAccessContainer whose value type is the point type |
| PolygonRange | a model of the concept SequenceContainer whose value_type is itself a model of the concept SequenceContainer whose value_type is an unsigned integer type convertible to std::size_t |
| NamedParameters | a sequence of Named Parameters |
| os | the output stream |
| points | points of the soup of polygons |
| polygons | a range of polygons. Each element in it describes a polygon using the indices of the points in points. |
| np | optional sequence of Named Parameters among the ones listed below |
| |
|
true if the writing was successful, false otherwise.