mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-23 08:41:11 -06:00
Moved C++ code into new libslic3r directory
This commit is contained in:
parent
b8676241e0
commit
6adc3477c9
84 changed files with 122 additions and 111 deletions
33
xs/src/libslic3r/Polyline.hpp
Normal file
33
xs/src/libslic3r/Polyline.hpp
Normal file
|
@ -0,0 +1,33 @@
|
|||
#ifndef slic3r_Polyline_hpp_
|
||||
#define slic3r_Polyline_hpp_
|
||||
|
||||
#include "Line.hpp"
|
||||
#include "MultiPoint.hpp"
|
||||
|
||||
namespace Slic3r {
|
||||
|
||||
class Polyline;
|
||||
typedef std::vector<Polyline> Polylines;
|
||||
|
||||
class Polyline : public MultiPoint {
|
||||
public:
|
||||
operator Polylines() const;
|
||||
Point last_point() const;
|
||||
Point leftmost_point() const;
|
||||
Lines lines() const;
|
||||
void clip_end(double distance);
|
||||
void clip_start(double distance);
|
||||
void extend_end(double distance);
|
||||
void extend_start(double distance);
|
||||
void equally_spaced_points(double distance, Points* points) const;
|
||||
void simplify(double tolerance);
|
||||
void split_at(const Point &point, Polyline* p1, Polyline* p2) const;
|
||||
|
||||
#ifdef SLIC3RXS
|
||||
void from_SV_check(SV* poly_sv);
|
||||
#endif
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue