CGAL::read_off_points() reads the point from a .off ASCII stream. More specifically, it reads only the point locations and ignores all point attributes available from the stream. CGAL::read_off_points_and_normals() reads the points as well as the normals (if available) from a .off ASCII stream. In both cases the other primitives (segments, faces) are ignored.
#include <CGAL/IO/read_off_points.h>
template<typename OutputIterator, typename PointPMap, typename Kernel> | ||||||||
bool |
| |||||||
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.
| ||||||||
template<typename OutputIterator, typename PointPMap, typename NormalPMap, typename Kernel> | ||||||||
bool |
| |||||||
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.
|
CGAL::read_xyz_points
CGAL::write_xyz_points
CGAL::write_off_points
See read_write_xyz_point_set_example.cpp.