OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::sla::PadConfig Struct Reference

#include </home/runner/work/OrcaSlicer/OrcaSlicer/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

References max_merge_dist_mm, wall_height_mm, wall_slope, and wall_thickness_mm.

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::Pad::Pad(), Slic3r::sla::SupportTreeBuilder::full_height(), and Slic3r::SLAPrint::Steps::generate_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::sla::SupportTreeBuilder::full_height(), and Slic3r::SLAPrintObject::get_elevation().

Here is the caller graph for this function:

◆ validate()

std::string Slic3r::sla::PadConfig::validate ( ) const
521{
522 static const double constexpr MIN_BRIM_SIZE_MM = .1;
523
524 if (brim_size_mm < MIN_BRIM_SIZE_MM ||
526 get_waffle_offset(*this) <= MIN_BRIM_SIZE_MM)
527 return L("Pad brim size is too small for the current configuration.");
528
529 return "";
530}
#define L(s)
Definition ExtrusionEntity.cpp:25
static coord_t get_waffle_offset(const PadConfig &c)
Definition Pad.cpp:149
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 bottom_offset(), brim_size_mm, L, 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 Slic3r::sla::anonymous_namespace{Pad.cpp}::get_waffle_offset(), and validate().

Here is the caller graph for this function:

Member Data Documentation

◆ brim_size_mm

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

◆ embed_object

◆ max_merge_dist_mm

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

◆ 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:
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/SLA/Pad.hpp
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/SLA/Pad.cpp