CGAL 4.11 - Point Set Processing
|
Read and write points (with or without normal vectors) in XYZ and OFF formats.
Functions | |
template<typename OutputIteratorValueType , typename OutputIterator , typename PointPMap , typename NormalPMap , typename Kernel > | |
bool | CGAL::read_off_points_and_normals (std::istream &stream, OutputIterator output, PointPMap point_pmap, NormalPMap normal_pmap, const Kernel &) |
Reads points (positions + normals, if available) from a .off ASCII stream. More... | |
template<typename OutputIteratorValueType , typename OutputIterator , typename PointPMap , typename Kernel > | |
bool | CGAL::read_off_points (std::istream &stream, OutputIterator output, PointPMap point_pmap, const Kernel &kernel) |
Reads points (position only) from a .off ASCII stream. More... | |
template<typename ForwardIterator , typename PointPMap , typename NormalPMap , typename Kernel > | |
bool | CGAL::write_xyz_points_and_normals (std::ostream &stream, ForwardIterator first, ForwardIterator beyond, PointPMap point_pmap, NormalPMap normal_pmap, const Kernel &) |
Saves the [first, beyond) range of points (positions + normals) to a .xyz ASCII stream. More... | |
template<typename ForwardIterator , typename PointPMap , typename Kernel > | |
bool | CGAL::write_xyz_points (std::ostream &stream, ForwardIterator first, ForwardIterator beyond, PointPMap point_pmap, const Kernel &) |
Saves the [first, beyond) range of points (positions only) to a .xyz ASCII stream. More... | |
template<typename ForwardIterator , typename PointPMap , typename NormalPMap , typename Kernel > | |
bool | CGAL::write_off_points_and_normals (std::ostream &stream, ForwardIterator first, ForwardIterator beyond, PointPMap point_pmap, NormalPMap normal_pmap, const Kernel &) |
Saves the [first, beyond) range of points (positions + normals) to a .off ASCII stream. More... | |
template<typename ForwardIterator , typename PointPMap , typename Kernel > | |
bool | CGAL::write_off_points (std::ostream &stream, ForwardIterator first, ForwardIterator beyond, PointPMap point_pmap, const Kernel &) |
Saves the [first, beyond) range of points (positions only) to a .off ASCII stream. More... | |
template<typename OutputIteratorValueType , typename OutputIterator , typename PointPMap , typename NormalPMap , typename Kernel > | |
bool | CGAL::read_xyz_points_and_normals (std::istream &stream, OutputIterator output, PointPMap point_pmap, NormalPMap normal_pmap, const Kernel &) |
Reads points (positions + normals, if available) from a .xyz ASCII stream. More... | |
template<typename OutputIteratorValueType , typename OutputIterator , typename PointPMap , typename Kernel > | |
bool | CGAL::read_xyz_points (std::istream &stream, OutputIterator output, PointPMap point_pmap, const Kernel &kernel) |
Reads points (positions only) from a .xyz ASCII stream. More... | |
bool CGAL::read_off_points | ( | std::istream & | stream, |
OutputIterator | output, | ||
PointPMap | point_pmap, | ||
const Kernel & | kernel | ||
) |
Reads points (position only) from a .off ASCII stream.
The function expects for each point a line with the x y z position. If the position is followed by the nx ny nz normal, then the normal will be ignored. Faces are ignored.
OutputIteratorValueType | type of objects that can be put in OutputIterator . It is default to value_type_traits<OutputIterator>::type and can be omitted when the default is fine. |
OutputIterator | iterator over output points. |
PointPMap | is a model of WritablePropertyMap with value_type Point_3<Kernel> . It can be omitted if the value type of OutputIterator is convertible to Point_3<Kernel> . |
Kernel | Geometric traits class. It can be omitted and deduced automatically from the value type of PointPMap . |
true
on success. stream | input stream. |
output | output iterator over points. |
point_pmap | property map: value_type of OutputIterator -> Point_3. |
kernel | geometric traits. |
#include <CGAL/IO/read_off_points.h>
bool CGAL::read_off_points_and_normals | ( | std::istream & | stream, |
OutputIterator | output, | ||
PointPMap | point_pmap, | ||
NormalPMap | normal_pmap, | ||
const Kernel & | |||
) |
Reads points (positions + normals, if available) from a .off ASCII stream.
The function expects for each point a line with the x y z position, optionally followed by the nx ny nz normal. Faces are ignored.
OutputIteratorValueType | type of objects that can be put in OutputIterator . It is default to value_type_traits<OutputIterator>::type and can be omitted when the default is fine. |
OutputIterator | iterator over output points. |
PointPMap | is a model of WritablePropertyMap with value type Point_3<Kernel> . It can be omitted if the value type of OutputIterator is convertible to Point_3<Kernel> . |
NormalPMap | is a model of WritablePropertyMap with value type Vector_3<Kernel> . |
Kernel | Geometric traits class. It can be omitted and deduced automatically from the value type of PointPMap . |
stream | input stream. |
output | output iterator over points. |
point_pmap | property map: value_type of OutputIterator -> Point_3. |
normal_pmap | property map: value_type of OutputIterator -> Vector_3. |
#include <CGAL/IO/read_off_points.h>
bool CGAL::read_xyz_points | ( | std::istream & | stream, |
OutputIterator | output, | ||
PointPMap | point_pmap, | ||
const Kernel & | kernel | ||
) |
Reads points (positions only) from a .xyz ASCII stream.
The function expects for each point a line with the x y z position. If the position is followed by the nx ny nz normal, then the normal will be ignored. The first line may contain the number of points in the file. Empty lines and comments starting by # character are allowed.
OutputIteratorValueType | type of objects that can be put in OutputIterator . It is default to value_type_traits<OutputIterator>::type and can be omitted when the default is fine. |
OutputIterator | iterator over output points. |
PointPMap | is a model of WritablePropertyMap with value type Point_3<Kernel> . It can be omitted if the value type of OutputIterator is convertible to Point_3<Kernel> . |
Kernel | Geometric traits class. It can be omitted and deduced automatically from the value type of PointPMap . |
stream | input stream. |
output | output iterator over points. |
point_pmap | property map: value_type of OutputIterator -> Point_3. |
kernel | geometric traits. |
#include <CGAL/IO/read_xyz_points.h>
bool CGAL::read_xyz_points_and_normals | ( | std::istream & | stream, |
OutputIterator | output, | ||
PointPMap | point_pmap, | ||
NormalPMap | normal_pmap, | ||
const Kernel & | |||
) |
Reads points (positions + normals, if available) from a .xyz ASCII stream.
The function expects for each point a line with the x y z position, optionally followed by the nx ny nz normal. The first line may contain the number of points in the file. Empty lines and comments starting by # character are allowed.
OutputIteratorValueType | type of objects that can be put in OutputIterator . It is default to value_type_traits<OutputIterator>::type and can be omitted when the default is fine. |
OutputIterator | iterator over output points. |
PointPMap | is a model of WritablePropertyMap with value type Point_3<Kernel> . It can be omitted if the value type of OutputIterator value_type is convertible to Point_3<Kernel> . |
NormalPMap | is a model of WritablePropertyMap with value type Vector_3<Kernel> . |
Kernel | Geometric traits class. It can be omitted and deduced automatically from the value type of PointPMap . |
stream | input stream. |
output | output iterator over points. |
point_pmap | property map: value_type of OutputIterator -> Point_3. |
normal_pmap | property map: value_type of OutputIterator -> Vector_3. |
#include <CGAL/IO/read_xyz_points.h>
bool CGAL::write_off_points | ( | std::ostream & | stream, |
ForwardIterator | first, | ||
ForwardIterator | beyond, | ||
PointPMap | point_pmap, | ||
const Kernel & | |||
) |
Saves the [first, beyond) range of points (positions only) to a .off ASCII stream.
The function writes for each point a line with the x y z position.
ForwardIterator | iterator over input points. |
PointPMap | is a model of ReadablePropertyMap with a value_type = Point_3<Kernel> . It can be omitted if the value type of ForwardIterator is convertible to Point_3<Kernel> . |
Kernel | Geometric traits class. It can be omitted and deduced automatically from the value type of PointPMap . |
stream | output stream. |
first | iterator over the first input point. |
beyond | past-the-end iterator over the input points. |
point_pmap | property map: value_type of ForwardIterator -> Point_3. |
#include <CGAL/IO/write_off_points.h>
bool CGAL::write_off_points_and_normals | ( | std::ostream & | stream, |
ForwardIterator | first, | ||
ForwardIterator | beyond, | ||
PointPMap | point_pmap, | ||
NormalPMap | normal_pmap, | ||
const Kernel & | |||
) |
Saves the [first, beyond) range of points (positions + normals) to a .off ASCII stream.
The function writes for each point a line with the x y z position followed by the nx ny nz normal.
ForwardIterator | iterator over input points. |
PointPMap | is a model of ReadablePropertyMap with value type Point_3<Kernel> . It can be omitted if the value type of ForwardIterator is convertible to Point_3<Kernel> . |
NormalPMap | is a model of ReadablePropertyMap with a value type Vector_3<Kernel> . |
Kernel | Geometric traits class. It can be omitted and deduced automatically from the value type of PointPMap . |
stream | output stream. |
first | iterator over the first input point. |
beyond | past-the-end iterator over the input points. |
point_pmap | property map: value_type of ForwardIterator -> Point_3. |
normal_pmap | property map: value_type of ForwardIterator -> Vector_3. |
#include <CGAL/IO/write_off_points.h>
bool CGAL::write_xyz_points | ( | std::ostream & | stream, |
ForwardIterator | first, | ||
ForwardIterator | beyond, | ||
PointPMap | point_pmap, | ||
const Kernel & | |||
) |
Saves the [first, beyond) range of points (positions only) to a .xyz ASCII stream.
The function writes for each point a line with the x y z position.
ForwardIterator | iterator over input points. |
PointPMap | is a model of ReadablePropertyMap with value type Point_3<Kernel> . It can be omitted if the value type of ForwardIterator value_type is convertible to Point_3<Kernel>`. |
Kernel | Geometric traits class. It can be omitted and deduced automatically from the value type of PointPMap . |
stream | output stream. |
first | iterator over the first input point. |
beyond | past-the-end iterator over the input points. |
point_pmap | property map: value_type of ForwardIterator -> Point_3. |
#include <CGAL/IO/write_xyz_points.h>
bool CGAL::write_xyz_points_and_normals | ( | std::ostream & | stream, |
ForwardIterator | first, | ||
ForwardIterator | beyond, | ||
PointPMap | point_pmap, | ||
NormalPMap | normal_pmap, | ||
const Kernel & | |||
) |
Saves the [first, beyond) range of points (positions + normals) to a .xyz ASCII stream.
The function writes for each point a line with the x y z position followed by the nx ny nz normal.
ForwardIterator | iterator over input points. |
PointPMap | is a model of ReadablePropertyMap with a value type = Point_3<Kernel> . It can be omitted if the value type of ForwardIterator is convertible to Point_3<Kernel> . |
NormalPMap | is a model of ReadablePropertyMap with a value type Vector_3<Kernel> . |
Kernel | Geometric traits class. It can be omitted and deduced automatically from the value type of PointPMap . |
stream | output stream. |
first | iterator over the first input point. |
beyond | past-the-end iterator over the input points. |
point_pmap | property map: value_type of ForwardIterator -> Point_3. |
normal_pmap | property map: value_type of ForwardIterator -> Vector_3. |
#include <CGAL/IO/write_xyz_points.h>