libslic3r
Library for generating gcode from 3d models
Public Member Functions | List of all members
Slic3r::Polyline Class Reference

#include <Polyline.hpp>

Inheritance diagram for Slic3r::Polyline:
Slic3r::MultiPoint Slic3r::ThickPolyline

Public Member Functions

 operator Polylines () const
 
 operator Line () const
 
Point last_point () const
 
Point leftmost_point () const
 
virtual Lines lines () const
 
void clip_end (double distance)
 
void clip_start (double distance)
 
void extend_end (double distance)
 
void extend_start (double distance)
 
Points equally_spaced_points (double distance) const
 
void simplify (double tolerance)
 
template<class T >
void simplify_by_visibility (const T &area)
 
void split_at (const Point &point, Polyline *p1, Polyline *p2) const
 
bool is_straight () const
 
std::string wkt () const
 
Polygons grow (double delta, double scale=CLIPPER_OFFSET_SCALE, ClipperLib::JoinType joinType=ClipperLib::jtSquare, double miterLimit=3.0) const
 
- Public Member Functions inherited from Slic3r::MultiPoint
 operator Points () const
 
void scale (double factor)
 
void translate (double x, double y)
 
void translate (const Point &vector)
 
void rotate (double angle)
 
void rotate (double angle, const Point &center)
 
void reverse ()
 
Point first_point () const
 
double length () const
 
bool is_valid () const
 
int find_point (const Point &point) const
 
bool has_boundary_point (const Point &point) const
 
BoundingBox bounding_box () const
 
bool has_duplicate_points () const
 
bool remove_duplicate_points ()
 
void append (const Point &point)
 
void append (const Points &points)
 
void append (const Points::const_iterator &begin, const Points::const_iterator &end)
 
bool intersection (const Line &line, Point *intersection) const
 
std::string dump_perl () const
 

Additional Inherited Members

- Static Public Member Functions inherited from Slic3r::MultiPoint
static Points _douglas_peucker (const Points &points, const double tolerance)
 
- Public Attributes inherited from Slic3r::MultiPoint
Points points
 
- Protected Member Functions inherited from Slic3r::MultiPoint
 MultiPoint ()
 
 MultiPoint (const Points &_points)
 
 ~MultiPoint ()=default
 

Member Function Documentation

◆ clip_end()

void Slic3r::Polyline::clip_end ( double  distance)

◆ clip_start()

void Slic3r::Polyline::clip_start ( double  distance)

◆ equally_spaced_points()

Points Slic3r::Polyline::equally_spaced_points ( double  distance) const

◆ extend_end()

void Slic3r::Polyline::extend_end ( double  distance)

◆ extend_start()

void Slic3r::Polyline::extend_start ( double  distance)

◆ grow()

Polygons Slic3r::Polyline::grow ( double  delta,
double  scale = CLIPPER_OFFSET_SCALE,
ClipperLib::JoinType  joinType = ClipperLib::jtSquare,
double  miterLimit = 3.0 
) const

◆ is_straight()

bool Slic3r::Polyline::is_straight ( ) const

◆ last_point()

Point Slic3r::Polyline::last_point ( ) const
virtual

Implements Slic3r::MultiPoint.

◆ leftmost_point()

Point Slic3r::Polyline::leftmost_point ( ) const

◆ lines()

Lines Slic3r::Polyline::lines ( ) const
virtual

Implements Slic3r::MultiPoint.

◆ operator Line()

Slic3r::Polyline::operator Line ( ) const

◆ operator Polylines()

Slic3r::Polyline::operator Polylines ( ) const

◆ simplify()

void Slic3r::Polyline::simplify ( double  tolerance)

◆ simplify_by_visibility()

template<class T >
template void Slic3r::Polyline::simplify_by_visibility< ExPolygonCollection > ( const T &  area)

◆ split_at()

void Slic3r::Polyline::split_at ( const Point point,
Polyline p1,
Polyline p2 
) const

◆ wkt()

std::string Slic3r::Polyline::wkt ( ) const

The documentation for this class was generated from the following files: