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

#include <ExtrusionEntity.hpp>

Inheritance diagram for Slic3r::ExtrusionPath:
Slic3r::ExtrusionEntity

Public Member Functions

 ExtrusionPath (ExtrusionRole role)
 
 ExtrusionPath (ExtrusionRole role, double mm3_per_mm, float width, float height)
 
ExtrusionPathclone () const
 
void reverse ()
 
Point first_point () const
 
Point last_point () const
 
void intersect_expolygons (const ExPolygonCollection &collection, ExtrusionEntityCollection *retval) const
 
void subtract_expolygons (const ExPolygonCollection &collection, ExtrusionEntityCollection *retval) const
 
void clip_end (double distance)
 
void simplify (double tolerance)
 
virtual double length () const
 
bool is_perimeter () const
 
bool is_infill () const
 
bool is_solid_infill () const
 
bool is_bridge () const
 
Polygons grow () const
 Produce a list of 2D polygons covered by the extruded path. More...
 
double min_mm3_per_mm () const
 Minimum volumetric velocity of this extrusion entity. Used by the constant nozzle pressure algorithm. More...
 
Polyline as_polyline () const
 
- Public Member Functions inherited from Slic3r::ExtrusionEntity
virtual bool is_collection () const
 
virtual bool is_loop () const
 
virtual bool can_reverse () const
 
virtual ~ExtrusionEntity ()
 

Public Attributes

Polyline polyline
 
ExtrusionRole role
 
double mm3_per_mm
 Volumetric velocity. mm^3 of plastic per mm of linear head motion. More...
 
float width
 Width of the extrusion. More...
 
float height
 Height of the extrusion. More...
 

Constructor & Destructor Documentation

◆ ExtrusionPath() [1/2]

Slic3r::ExtrusionPath::ExtrusionPath ( ExtrusionRole  role)
inline

◆ ExtrusionPath() [2/2]

Slic3r::ExtrusionPath::ExtrusionPath ( ExtrusionRole  role,
double  mm3_per_mm,
float  width,
float  height 
)
inline

Member Function Documentation

◆ as_polyline()

Polyline Slic3r::ExtrusionPath::as_polyline ( ) const
inlinevirtual

◆ clip_end()

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

◆ clone()

ExtrusionPath* Slic3r::ExtrusionPath::clone ( ) const
inlinevirtual

◆ first_point()

Point Slic3r::ExtrusionPath::first_point ( ) const
inlinevirtual

◆ grow()

Polygons Slic3r::ExtrusionPath::grow ( ) const
virtual

Produce a list of 2D polygons covered by the extruded path.

Implements Slic3r::ExtrusionEntity.

◆ intersect_expolygons()

void Slic3r::ExtrusionPath::intersect_expolygons ( const ExPolygonCollection collection,
ExtrusionEntityCollection retval 
) const

Produce a list of extrusion paths into retval by clipping this path by ExPolygonCollection. Currently not used.

◆ is_bridge()

bool Slic3r::ExtrusionPath::is_bridge ( ) const
inline

◆ is_infill()

bool Slic3r::ExtrusionPath::is_infill ( ) const
inlinevirtual

Reimplemented from Slic3r::ExtrusionEntity.

◆ is_perimeter()

bool Slic3r::ExtrusionPath::is_perimeter ( ) const
inlinevirtual

Reimplemented from Slic3r::ExtrusionEntity.

◆ is_solid_infill()

bool Slic3r::ExtrusionPath::is_solid_infill ( ) const
inlinevirtual

Reimplemented from Slic3r::ExtrusionEntity.

◆ last_point()

Point Slic3r::ExtrusionPath::last_point ( ) const
inlinevirtual

◆ length()

double Slic3r::ExtrusionPath::length ( ) const
virtual

Reimplemented from Slic3r::ExtrusionEntity.

◆ min_mm3_per_mm()

double Slic3r::ExtrusionPath::min_mm3_per_mm ( ) const
inlinevirtual

Minimum volumetric velocity of this extrusion entity. Used by the constant nozzle pressure algorithm.

Implements Slic3r::ExtrusionEntity.

◆ reverse()

void Slic3r::ExtrusionPath::reverse ( )
inlinevirtual

◆ simplify()

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

◆ subtract_expolygons()

void Slic3r::ExtrusionPath::subtract_expolygons ( const ExPolygonCollection collection,
ExtrusionEntityCollection retval 
) const

Produce a list of extrusion paths into retval by removing parts of this path by ExPolygonCollection. Currently not used.

Member Data Documentation

◆ height

float Slic3r::ExtrusionPath::height

Height of the extrusion.

◆ mm3_per_mm

double Slic3r::ExtrusionPath::mm3_per_mm

Volumetric velocity. mm^3 of plastic per mm of linear head motion.

◆ polyline

Polyline Slic3r::ExtrusionPath::polyline

◆ role

ExtrusionRole Slic3r::ExtrusionPath::role

◆ width

float Slic3r::ExtrusionPath::width

Width of the extrusion.


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