Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
Slic3r::sla::PadConfig Struct Reference

#include <src/libslic3r/SLA/Pad.hpp>

+ Collaboration diagram for Slic3r::sla::PadConfig:

Classes

struct  EmbedObject
 

Public Member Functions

 PadConfig ()=default
 
 PadConfig (double thickness, double height, double mergedist, double slope)
 
double bottom_offset () const
 
double wing_distance () const
 
double full_height () const
 
double required_elevation () const
 Returns the elevation needed for compensating the pad.
 
std::string validate () const
 

Public Attributes

double wall_thickness_mm = 1.
 
double wall_height_mm = 1.
 
double max_merge_dist_mm = 50
 
double wall_slope = std::atan(1.0)
 
double brim_size_mm = 1.6
 
struct Slic3r::sla::PadConfig::EmbedObject embed_object
 

Detailed Description

Constructor & Destructor Documentation

◆ PadConfig() [1/2]

Slic3r::sla::PadConfig::PadConfig ( )
inlinedefault

◆ PadConfig() [2/2]

Slic3r::sla::PadConfig::PadConfig ( double  thickness,
double  height,
double  mergedist,
double  slope 
)
inline
60 : wall_thickness_mm(thickness)
61 , wall_height_mm(height)
62 , max_merge_dist_mm(mergedist)
63 , wall_slope(slope)
64 {}
double max_merge_dist_mm
Definition Pad.hpp:41
double wall_height_mm
Definition Pad.hpp:40
double wall_slope
Definition Pad.hpp:42
double wall_thickness_mm
Definition Pad.hpp:39

Member Function Documentation

◆ bottom_offset()

double Slic3r::sla::PadConfig::bottom_offset ( ) const
inline
67 {
68 return (wall_thickness_mm + wall_height_mm) / std::tan(wall_slope);
69 }

References wall_height_mm, wall_slope, and wall_thickness_mm.

Referenced by validate().

+ Here is the caller graph for this function:

◆ full_height()

double Slic3r::sla::PadConfig::full_height ( ) const
inline
77 {
79 }

References wall_height_mm, and wall_thickness_mm.

Referenced by Slic3r::sla::create_pad().

+ Here is the caller graph for this function:

◆ required_elevation()

double Slic3r::sla::PadConfig::required_elevation ( ) const
inline

Returns the elevation needed for compensating the pad.

82{ return wall_thickness_mm; }

References wall_thickness_mm.

Referenced by Slic3r::SLAPrintObject::get_elevation().

+ Here is the caller graph for this function:

◆ validate()

std::string Slic3r::sla::PadConfig::validate ( ) const
524{
525 static const double constexpr MIN_BRIM_SIZE_MM = .1;
526
527 if (brim_size_mm < MIN_BRIM_SIZE_MM ||
529 get_waffle_offset(*this) <= MIN_BRIM_SIZE_MM)
530 return _u8L("Pad brim size is too small for the current configuration.");
531
532 return "";
533}
#define _u8L(s)
macro used to mark string used at localization, return same string
Definition SLAPrint.cpp:29
static coord_t get_waffle_offset(const PadConfig &c)
Definition Pad.cpp:136
double brim_size_mm
Definition Pad.hpp:43
double wing_distance() const
Definition Pad.hpp:71
double bottom_offset() const
Definition Pad.hpp:66

References _u8L, bottom_offset(), brim_size_mm, and wing_distance().

Referenced by Slic3r::SLAPrint::validate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ wing_distance()

double Slic3r::sla::PadConfig::wing_distance ( ) const
inline
72 {
73 return wall_height_mm / std::tan(wall_slope);
74 }

References wall_height_mm, and wall_slope.

Referenced by validate().

+ Here is the caller graph for this function:

Member Data Documentation

◆ brim_size_mm

double Slic3r::sla::PadConfig::brim_size_mm = 1.6

Referenced by Slic3r::make_pad_cfg(), and validate().

◆ embed_object

◆ max_merge_dist_mm

double Slic3r::sla::PadConfig::max_merge_dist_mm = 50

Referenced by Slic3r::make_pad_cfg().

◆ wall_height_mm

double Slic3r::sla::PadConfig::wall_height_mm = 1.

◆ wall_slope

double Slic3r::sla::PadConfig::wall_slope = std::atan(1.0)

◆ wall_thickness_mm


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