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

#include <ExPolygon.hpp>

Public Member Functions

 ExPolygon ()
 
 ExPolygon (const Polygon &_contour)
 
 ExPolygon (const Points &_contour)
 
 ExPolygon (const Points &_contour, const Points &_hole)
 Constructor to build a single holed. More...
 
 operator Points () const
 
 operator Polygons () const
 
void scale (double factor)
 
void translate (double x, double y)
 
void rotate (double angle)
 
void rotate (double angle, const Point &center)
 
double area () const
 
bool is_valid () const
 
bool contains (const Line &line) const
 
bool contains (const Polyline &polyline) const
 
bool contains (const Point &point) const
 
bool contains_b (const Point &point) const
 
bool has_boundary_point (const Point &point) const
 
BoundingBox bounding_box () const
 
void remove_vertical_collinear_points (coord_t tolerance)
 
void simplify_p (double tolerance, Polygons *polygons) const
 
Polygons simplify_p (double tolerance) const
 
ExPolygons simplify (double tolerance) const
 
void simplify (double tolerance, ExPolygons *expolygons) const
 
void medial_axis (const ExPolygon &bounds, double max_width, double min_width, ThickPolylines *polylines) const
 
void medial_axis (double max_width, double min_width, Polylines *polylines) const
 
void get_trapezoids (Polygons *polygons) const
 
void get_trapezoids (Polygons *polygons, double angle) const
 
void get_trapezoids2 (Polygons *polygons) const
 
void get_trapezoids2 (Polygons *polygons, double angle) const
 
void triangulate (Polygons *polygons) const
 
void triangulate_pp (Polygons *polygons) const
 
void triangulate_p2t (Polygons *polygons) const
 
Lines lines () const
 
std::string dump_perl () const
 

Public Attributes

Polygon contour
 
Polygons holes
 

Constructor & Destructor Documentation

◆ ExPolygon() [1/4]

Slic3r::ExPolygon::ExPolygon ( )
inline

◆ ExPolygon() [2/4]

Slic3r::ExPolygon::ExPolygon ( const Polygon _contour)
inlineexplicit

◆ ExPolygon() [3/4]

Slic3r::ExPolygon::ExPolygon ( const Points _contour)
inlineexplicit

◆ ExPolygon() [4/4]

Slic3r::ExPolygon::ExPolygon ( const Points _contour,
const Points _hole 
)
inlineexplicit

Constructor to build a single holed.

Member Function Documentation

◆ area()

double Slic3r::ExPolygon::area ( ) const

◆ bounding_box()

BoundingBox Slic3r::ExPolygon::bounding_box ( ) const
inline

◆ contains() [1/3]

bool Slic3r::ExPolygon::contains ( const Line line) const

◆ contains() [2/3]

bool Slic3r::ExPolygon::contains ( const Polyline polyline) const

◆ contains() [3/3]

bool Slic3r::ExPolygon::contains ( const Point point) const

◆ contains_b()

bool Slic3r::ExPolygon::contains_b ( const Point point) const

◆ dump_perl()

std::string Slic3r::ExPolygon::dump_perl ( ) const

◆ get_trapezoids() [1/2]

void Slic3r::ExPolygon::get_trapezoids ( Polygons polygons) const

◆ get_trapezoids() [2/2]

void Slic3r::ExPolygon::get_trapezoids ( Polygons polygons,
double  angle 
) const

◆ get_trapezoids2() [1/2]

void Slic3r::ExPolygon::get_trapezoids2 ( Polygons polygons) const

◆ get_trapezoids2() [2/2]

void Slic3r::ExPolygon::get_trapezoids2 ( Polygons polygons,
double  angle 
) const

◆ has_boundary_point()

bool Slic3r::ExPolygon::has_boundary_point ( const Point point) const

◆ is_valid()

bool Slic3r::ExPolygon::is_valid ( ) const

◆ lines()

Lines Slic3r::ExPolygon::lines ( ) const

◆ medial_axis() [1/2]

void Slic3r::ExPolygon::medial_axis ( const ExPolygon bounds,
double  max_width,
double  min_width,
ThickPolylines polylines 
) const

◆ medial_axis() [2/2]

void Slic3r::ExPolygon::medial_axis ( double  max_width,
double  min_width,
Polylines polylines 
) const

◆ operator Points()

Slic3r::ExPolygon::operator Points ( ) const

◆ operator Polygons()

Slic3r::ExPolygon::operator Polygons ( ) const

◆ remove_vertical_collinear_points()

void Slic3r::ExPolygon::remove_vertical_collinear_points ( coord_t  tolerance)

◆ rotate() [1/2]

void Slic3r::ExPolygon::rotate ( double  angle)

◆ rotate() [2/2]

void Slic3r::ExPolygon::rotate ( double  angle,
const Point center 
)

◆ scale()

void Slic3r::ExPolygon::scale ( double  factor)

◆ simplify() [1/2]

ExPolygons Slic3r::ExPolygon::simplify ( double  tolerance) const

◆ simplify() [2/2]

void Slic3r::ExPolygon::simplify ( double  tolerance,
ExPolygons expolygons 
) const

◆ simplify_p() [1/2]

void Slic3r::ExPolygon::simplify_p ( double  tolerance,
Polygons polygons 
) const

◆ simplify_p() [2/2]

Polygons Slic3r::ExPolygon::simplify_p ( double  tolerance) const

◆ translate()

void Slic3r::ExPolygon::translate ( double  x,
double  y 
)

◆ triangulate()

void Slic3r::ExPolygon::triangulate ( Polygons polygons) const

◆ triangulate_p2t()

void Slic3r::ExPolygon::triangulate_p2t ( Polygons polygons) const

◆ triangulate_pp()

void Slic3r::ExPolygon::triangulate_pp ( Polygons polygons) const

Member Data Documentation

◆ contour

Polygon Slic3r::ExPolygon::contour

◆ holes

Polygons Slic3r::ExPolygon::holes

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