30 ss.precision(precision);
36 static std::string
toStlString(
const T& t,
int fieldWidth,
char fillChar)
39 ss << std::setfill(fillChar) << std::setw(fieldWidth) << t;
46 static std::string toStlString<Geom::Pnt>(
const Geom::Pnt& p,
int precision)
49 ss.precision(precision);
50 ss <<
"x: " << p.
x() <<
" y: " << p.
y() <<
" z: " << p.
z();
55 static std::string toStlString<Geom::Vec>(
const Geom::Vec& v,
int precision)
58 ss.precision(precision);
59 ss <<
"x: " << v.
x() <<
" y: " << v.
y() <<
" z: " << v.
z();
64 static std::string toStlString<Geom::XYZ>(
const Geom::XYZ& xyz,
int precision)
67 ss.precision(precision);
68 ss <<
"x: " << xyz.
x() <<
" y: " << xyz.
y() <<
" z: " << xyz.
z();
73 static std::string toStlString<Geom::Dir>(
const Geom::Dir& dir,
int precision)
76 ss.precision(precision);
77 ss <<
"x: " << dir.
x() <<
" y: " << dir.
y() <<
" z: " << dir.
z();
84 std::wstringstream ss;
92 std::wstringstream ss;
93 ss.precision(precision);
101 std::wstringstream ss;
102 ss << std::setfill(fillChar) << std::setw(fieldWidth) << t;
109 std::wstringstream ss;
110 ss.precision(precision);
111 ss <<
"x: " << p.
x() <<
" y: " << p.
y() <<
" z: " << p.
z();
118 std::wstringstream ss;
119 ss.precision(precision);
120 ss <<
"x: " << v.
x() <<
" y: " << v.
y() <<
" z: " << v.
z();
127 std::wstringstream ss;
128 ss.precision(precision);
129 ss <<
"x: " << xyz.
x() <<
" y: " << xyz.
y() <<
" z: " << xyz.
z();
136 std::wstringstream ss;
137 ss.precision(precision);
138 ss <<
"x: " << dir.
x() <<
" y: " << dir.
y() <<
" z: " << dir.
z();
double z() const
For this point, returns its X coordinate.
double x() const
Returns the X coordinate for a unit vector.
double y() const
Returns the Y coordinate for a unit vector.
double z() const
Returns the Z coordinate for a unit vector.
Defines a non-persistent 3D Cartesian point.
Definition: Pnt.h:43
double y() const
For this point, returns its X coordinate.
double x() const
For this vector, returns its X coordinate.
double z() const
Returns the X, Y, or Z coordinate of this number triple.
A Utf-16 (windows) or ucs4 (unix) encoded string class.
Definition: String.h:23
double x() const
For this point, returns its X coordinate.
double z() const
For this vector, returns its Z coordinate.
double x() const
Returns the X, Y, or Z coordinate of this number triple.
Defines a non-persistent vector in 3D space.
Definition: Vec.h:44
double y() const
For this vector, returns its Y coordinate.
double y() const
Returns the X, Y, or Z coordinate of this number triple.