2 #pragma warning(disable : 4251) 16 #define BOOST_HAS_STDINT_H 45 ss.precision(precision);
51 static std::string
toStlString(
const T& t,
int fieldWidth,
char fillChar)
54 ss << std::setfill(fillChar) << std::setw(fieldWidth) << t;
61 static std::string toStlString<Geom::Pnt>(
const Geom::Pnt& p,
int precision)
64 ss.precision(precision);
65 ss <<
"x: " << p.
x() <<
" y: " << p.
y() <<
" z: " << p.
z();
70 static std::string toStlString<Geom::Vec>(
const Geom::Vec& v,
int precision)
73 ss.precision(precision);
74 ss <<
"x: " << v.
x() <<
" y: " << v.
y() <<
" z: " << v.
z();
79 static std::string toStlString<Geom::XYZ>(
const Geom::XYZ& xyz,
int precision)
82 ss.precision(precision);
83 ss <<
"x: " << xyz.
x() <<
" y: " << xyz.
y() <<
" z: " << xyz.
z();
88 static std::string toStlString<Geom::Dir>(
const Geom::Dir& dir,
int precision)
91 ss.precision(precision);
92 ss <<
"x: " << dir.
x() <<
" y: " << dir.
y() <<
" z: " << dir.
z();
99 std::wstringstream ss;
104 template <
typename T>
107 std::wstringstream ss;
108 ss.precision(precision);
113 template <
typename T>
116 std::wstringstream ss;
117 ss << std::setfill(fillChar) << std::setw(fieldWidth) << t;
124 std::wstringstream ss;
125 ss.precision(precision);
126 ss <<
"x: " << p.
x() <<
" y: " << p.
y() <<
" z: " << p.
z();
133 std::wstringstream ss;
134 ss.precision(precision);
135 ss <<
"x: " << v.
x() <<
" y: " << v.
y() <<
" z: " << v.
z();
142 std::wstringstream ss;
143 ss.precision(precision);
144 ss <<
"x: " << xyz.
x() <<
" y: " << xyz.
y() <<
" z: " << xyz.
z();
151 std::wstringstream ss;
152 ss.precision(precision);
153 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:42
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.
#define GEOM_EXPORT
Definition: geom_defines.h:8
A Utf-16 (windows) or ucs4 (unix) encoded string class.
Definition: String.h:29
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:45
double y() const
For this vector, returns its Y coordinate.
double y() const
Returns the X, Y, or Z coordinate of this number triple.