Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2016-12-08 17:16:09 +0300
committerbubnikv <bubnikv@gmail.com>2016-12-08 17:16:09 +0300
commit5d18657ac5546022421da5fe559436a876ad9029 (patch)
treedb9e9a6751e1a763c5a9c5cc8faf6b5e84e3c910 /xs/src/libslic3r/Point.hpp
parent24e0b568b5d721849f6a94523bc3a6c2ae31c580 (diff)
Don't be lazy, use fully qualified Slic3r::Polygon/ExPolygon/Point/Line names
Diffstat (limited to 'xs/src/libslic3r/Point.hpp')
-rw-r--r--xs/src/libslic3r/Point.hpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/xs/src/libslic3r/Point.hpp b/xs/src/libslic3r/Point.hpp
index 66e78ae46..0405ec078 100644
--- a/xs/src/libslic3r/Point.hpp
+++ b/xs/src/libslic3r/Point.hpp
@@ -131,7 +131,7 @@ class Pointf3 : public Pointf
Vectorf3 vector_to(const Pointf3 &point) const;
};
-}
+} // namespace Slic3r
// start Boost
#include <boost/version.hpp>
@@ -155,28 +155,28 @@ namespace boost { namespace polygon {
#endif
template <>
- struct geometry_concept<Point> { typedef point_concept type; };
+ struct geometry_concept<Slic3r::Point> { typedef point_concept type; };
template <>
- struct point_traits<Point> {
+ struct point_traits<Slic3r::Point> {
typedef coord_t coordinate_type;
- static inline coordinate_type get(const Point& point, orientation_2d orient) {
+ static inline coordinate_type get(const Slic3r::Point& point, orientation_2d orient) {
return (orient == HORIZONTAL) ? point.x : point.y;
}
};
template <>
- struct point_mutable_traits<Point> {
+ struct point_mutable_traits<Slic3r::Point> {
typedef coord_t coordinate_type;
- static inline void set(Point& point, orientation_2d orient, coord_t value) {
+ static inline void set(Slic3r::Point& point, orientation_2d orient, coord_t value) {
if (orient == HORIZONTAL)
point.x = value;
else
point.y = value;
}
- static inline Point construct(coord_t x_value, coord_t y_value) {
- Point retval;
+ static inline Slic3r::Point construct(coord_t x_value, coord_t y_value) {
+ Slic3r::Point retval;
retval.x = x_value;
retval.y = y_value;
return retval;