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.
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.
Saves the range of points (positions + normals, if available) 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 (if available).
Note
The precision() of the output stream might not be sufficient depending on the data to be written.
Template Parameters
PointRange
is a model of ConstRange. The value type of its iterator is the key type of the named parameter point_map.
Parameters
stream
output stream.
points
input point range.
np
an optional sequence of Named Parameters among the ones listed below
Optional Named Parameters
a property map associating points to the elements of the point range
Saves the range of points (positions + normals, if available) 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 (if available).
Template Parameters
PointRange
is a model of ConstRange. The value type of its iterator is the key type of the named parameter point_map.
Parameters
stream
output stream.
points
input point range.
np
an optional sequence of Named Parameters among the ones listed below
Optional Named Parameters
a property map associating points to the elements of the point range