mirror of https://github.com/CGAL/cgal
Add missing overloads for set_default_stream_precision()
This commit is contained in:
parent
7bf9c14f72
commit
8e23769d8e
|
|
@ -89,6 +89,18 @@ private:
|
|||
}
|
||||
};
|
||||
|
||||
template<typename NP>
|
||||
void set_default_stream_precision(Inventor_ostream_base& os, const NP& np)
|
||||
{
|
||||
if(!parameters::is_default_parameter(
|
||||
parameters::get_parameter(np, internal_np::stream_precision)))
|
||||
{
|
||||
const int precision = parameters::choose_parameter<int>(
|
||||
parameters::get_parameter(np, internal_np::stream_precision));
|
||||
os.os().precision(precision);
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace CGAL
|
||||
|
||||
#endif // CGAL_IO_INVENTOR_OSTREAM_H
|
||||
|
|
|
|||
|
|
@ -104,6 +104,17 @@ inline VRML_2_ostream& operator<<(VRML_2_ostream& os,
|
|||
return os;
|
||||
}
|
||||
|
||||
template<typename NP>
|
||||
void set_default_stream_precision(VRML_2_ostream& os, const NP& np)
|
||||
{
|
||||
if(!parameters::is_default_parameter(
|
||||
parameters::get_parameter(np, internal_np::stream_precision)))
|
||||
{
|
||||
const int precision = parameters::choose_parameter<int>(
|
||||
parameters::get_parameter(np, internal_np::stream_precision));
|
||||
os.os().precision(precision);
|
||||
}
|
||||
}
|
||||
} // namespace CGAL
|
||||
|
||||
#endif // CGAL_IO_VRML_2_OSTREAM_H
|
||||
|
|
@ -315,4 +326,5 @@ operator<<(VRML_2_ostream& os,
|
|||
} //namespace CGAL
|
||||
|
||||
#endif // CGAL_IO_VRML_VRML_2_SEGMENT_3
|
||||
|
||||
#endif // CGAL_SPHERE_3_H
|
||||
|
|
|
|||
Loading…
Reference in New Issue