CGAL::read_xyz_points() reads the point locations from a .xyz ASCII stream. CGAL::read_xyz_points_and_normals() reads the points as well as the normals (if available) from a .xyz ASCII stream.
#include <CGAL/IO/read_xyz_points.h>
template<typename OutputIterator, typename PointPMap, typename Kernel> | ||||||||
bool |
| |||||||
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.
| ||||||||
template<typename OutputIterator, typename PointPMap, typename NormalPMap, typename Kernel> | ||||||||
bool |
| |||||||
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.
|
CGAL::write_xyz_points
CGAL::read_off_points
CGAL::write_off_points
See read_write_xyz_point_set_example.cpp.