template<typename OutputIterator, typename PointPMap, typename Kernel>
|
bool
|
read_off_points ( |
std::istream& stream,
OutputIterator output,
PointPMap point_pmap,
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.
Template Parameters: |
OutputIterator: iterator over output points. PointPMap: is a model of boost::WritablePropertyMap with a value_type = Point_3<Kernel>. It can be omitted if OutputIterator value_type is convertible to Point_3<Kernel>. Kernel: Geometric traits class. It can be omitted and deduced automatically from PointPMap value_type.
|
Returns: | true on success.
|
Parameters: |
stream: input stream. output: output iterator over points. point_pmap: property map OutputIterator -> Point_3. kernel: geometric traits. |
|
template<typename OutputIterator, typename PointPMap, typename NormalPMap, typename Kernel>
|
bool
|
read_off_points_and_normals ( |
std::istream& stream,
OutputIterator output,
PointPMap point_pmap,
NormalPMap normal_pmap,
Kernel 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.
Template Parameters: |
OutputIterator: iterator over output points. PointPMap: is a model of boost::WritablePropertyMap with a value_type = Point_3<Kernel>. It can be omitted if OutputIterator value_type is convertible to Point_3<Kernel>. NormalPMap: is a model of boost::WritablePropertyMap with a value_type = Vector_3<Kernel>. Kernel: Geometric traits class. It can be omitted and deduced automatically from PointPMap value_type.
|
Returns: | true on success.
|
Parameters: |
stream: input stream. output: output iterator over points. point_pmap: property map OutputIterator -> Point_3. normal_pmap: property map OutputIterator -> Vector_3. kernel: geometric traits. |
|