The polygon soup is not cleared, and the data from the file are appended.
Template Parameters
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 integer type
NamedParameters
a sequence of Named Parameters
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
Optional Named Parameters
indicates whether data should be read in binary (true) or in ASCII (false)
Type: Boolean
Default: true
indicates whether output warnings and error messages should be printed or not.
Type: Boolean
Default: false
Returns
true if the reading was successful, false otherwise.
The polygon soup is not cleared, and the data from the stream are appended.
To read a binary file, the flag std::ios::binary must be set during the creation of the ifstream.
Template Parameters
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
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
Optional Named Parameters
indicates whether data should be read in binary (true) or in ASCII (false)
Type: Boolean
Default: true
indicates whether output warnings and error messages should be printed or not.
Type: Boolean
Default: false
Returns
true if the reading was successful, false otherwise.
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
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 Named Parameters described below
Optional Named Parameters
indicates whether data should be written in binary (true) or in ASCII (false)
Type: Boolean
Default: true
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 the writing was successful, false otherwise.
To write to a binary file, the flag std::ios::binary must be set during the creation of the ofstream, and the IO::Mode of the stream must be set to BINARY.
Template Parameters
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
Parameters
out
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 Named Parameters described below
Optional Named Parameters
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 the writing was successful, false otherwise.