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

#include <BridgeDetector.hpp>

Public Member Functions

 BridgeDetector (const ExPolygon &_expolygon, const ExPolygonCollection &_lower_slices, coord_t _extrusion_width)
 
bool detect_angle ()
 
Polygons coverage () const
 
Polygons coverage (double angle) const
 
Polylines unsupported_edges (double angle=-1) const
 

Public Attributes

ExPolygon expolygon
 The non-grown hole. More...
 
ExPolygonCollection lower_slices
 Lower slices, all regions. More...
 
coord_t extrusion_width
 Scaled extrusion width of the infill. More...
 
double resolution
 Angle resolution for the brute force search of the best bridging angle. More...
 
double angle
 The final optimal angle. More...
 

Constructor & Destructor Documentation

◆ BridgeDetector()

Slic3r::BridgeDetector::BridgeDetector ( const ExPolygon _expolygon,
const ExPolygonCollection _lower_slices,
coord_t  _extrusion_width 
)

Member Function Documentation

◆ coverage() [1/2]

Polygons Slic3r::BridgeDetector::coverage ( ) const

◆ coverage() [2/2]

Polygons Slic3r::BridgeDetector::coverage ( double  angle) const

◆ detect_angle()

bool Slic3r::BridgeDetector::detect_angle ( )

◆ unsupported_edges()

Polylines Slic3r::BridgeDetector::unsupported_edges ( double  angle = -1) const

Return the bridge edges that are not currently supported but would permit use of the supplied bridge angle if it was supported.

This method returns the bridge edges (as polylines) that are not supported but would allow the entire bridge area to be bridged with detected angle if supported too

Member Data Documentation

◆ angle

double Slic3r::BridgeDetector::angle

The final optimal angle.

◆ expolygon

ExPolygon Slic3r::BridgeDetector::expolygon

The non-grown hole.

◆ extrusion_width

coord_t Slic3r::BridgeDetector::extrusion_width

Scaled extrusion width of the infill.

◆ lower_slices

ExPolygonCollection Slic3r::BridgeDetector::lower_slices

Lower slices, all regions.

◆ resolution

double Slic3r::BridgeDetector::resolution

Angle resolution for the brute force search of the best bridging angle.


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