- a property map associating points to the elements of the point range
-
Type: a model of
WritablePropertyMap
with value typegeom_traits::Point_3
-
Default:
CGAL::Identity_property_map<geom_traits::Point_3>
CGAL 6.0.1 - Point Set Processing
|
Functions | |
template<typename OutputIteratorValueType , typename PointOutputIterator , typename NamedParameters = parameters::Default_named_parameters> | |
bool | CGAL::IO::read_points (const std::string &fname, PointOutputIterator output, const NamedParameters &np=parameters::default_values()) |
reads the point set from an input file. | |
template<typename PointRange , typename NamedParameters = CGAL::parameters::Default_named_parameters> | |
bool | CGAL::IO::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. | |
bool CGAL::IO::read_points | ( | const std::string & | fname, |
PointOutputIterator | output, | ||
const NamedParameters & | np = parameters::default_values() |
||
) |
#include <CGAL/IO/read_points.h>
reads the point set from an input file.
Supported file formats are the following:
.off
).ply
).las
).xyz
)The format is detected from the filename extension (letter case is not important).
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 | the name of the input file. |
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::write_points | ( | const std::string & | fname, |
const PointRange & | points, | ||
const NamedParameters & | np = parameters::default_values() |
||
) |
#include <CGAL/IO/write_points.h>
writes the range of points
with properties to a file.
Supported file formats are the following:
.off
).ply
).las
).xyz
)The format is detected from the filename extension (letter case is not important).
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 |
fname | the name of the output file. |
points | the range of points that will be written. |
np | optional sequence of Named Parameters among the ones listed below. |
| |
| |
| |
| |
|
true
if writing was successful, false
otherwise.