OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::SupportSpotsGenerator::Params Struct Reference

#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/Support/SupportSpotsGenerator.hpp>

Collaboration diagram for Slic3r::SupportSpotsGenerator::Params:

Public Member Functions

 Params (const std::vector< std::string > &filament_types, int raft_layers_count, BrimType brim_type, float brim_width)
double get_bed_adhesion_yield_strength () const
double get_support_spots_adhesion_strength () const

Public Attributes

const float bridge_distance = 16.0f
const int raft_layers_count
std::string filament_type
BrimType brim_type
const float brim_width
const std::pair< float, float > malformation_distance_factors = std::pair<float, float> { 0.2, 1.1 }
const float max_curled_height_factor = 10.0f
const float curled_distance_expansion = 1.0f
const float curling_tolerance_limit = 0.1f
const float min_distance_between_support_points = 3.0f
const float support_points_interface_radius = 1.5f
const float min_distance_to_allow_local_supports = 1.0f
const float gravity_constant = 9806.65f
const double filament_density = 1.25e-3f
const double material_yield_strength = 33.0f * 1e6f
const float standard_extruder_conflict_force = 10.0f * gravity_constant
const float malformations_additive_conflict_extruder_force = 65.0f * gravity_constant

Detailed Description

Constructor & Destructor Documentation

◆ Params()

Slic3r::SupportSpotsGenerator::Params::Params ( const std::vector< std::string > & filament_types,
int raft_layers_count,
BrimType brim_type,
float brim_width )
inline
23 : /*max_acceleration(max_acceleration), */raft_layers_count(raft_layers_count), brim_type(brim_type), brim_width(brim_width)
24 {
25 if (filament_types.size() > 1) {
26 BOOST_LOG_TRIVIAL(debug)
27 << "SupportSpotsGenerator does not currently handle different materials properly, only first will be used";
28 }
29 if (filament_types.empty() || filament_types[0].empty()) {
30 BOOST_LOG_TRIVIAL(error) << "SupportSpotsGenerator error: empty filament_type";
31 filament_type = std::string("PLA");
32 } else {
33 filament_type = filament_types[0];
34 BOOST_LOG_TRIVIAL(debug) << "SupportSpotsGenerator: applying filament type: " << filament_type;
35 }
36 }
std::string filament_type
Definition SupportSpotsGenerator.hpp:43
const float brim_width
Definition SupportSpotsGenerator.hpp:46
BrimType brim_type
Definition SupportSpotsGenerator.hpp:45
const int raft_layers_count
Definition SupportSpotsGenerator.hpp:42

References brim_type, brim_width, and raft_layers_count.

Member Function Documentation

◆ get_bed_adhesion_yield_strength()

double Slic3r::SupportSpotsGenerator::Params::get_bed_adhesion_yield_strength ( ) const
inline
64 {
65 if (raft_layers_count > 0) {
67 }
68
69 double yield_strength = 0.02;
71 return yield_strength * 1e6;
72 }
static bool get_yield_strength(const std::string &type, double &yield_strength)
Definition MaterialType.cpp:148
double get_support_spots_adhesion_strength() const
Definition SupportSpotsGenerator.hpp:74

References filament_type, get_support_spots_adhesion_strength(), Slic3r::MaterialType::get_yield_strength(), and raft_layers_count.

Here is the call graph for this function:

◆ get_support_spots_adhesion_strength()

double Slic3r::SupportSpotsGenerator::Params::get_support_spots_adhesion_strength ( ) const
inline
74 {
75 return 0.016f * 1e6;
76 }

Referenced by get_bed_adhesion_yield_strength().

Here is the caller graph for this function:

Member Data Documentation

◆ bridge_distance

const float Slic3r::SupportSpotsGenerator::Params::bridge_distance = 16.0f

◆ brim_type

BrimType Slic3r::SupportSpotsGenerator::Params::brim_type

Referenced by Params().

◆ brim_width

const float Slic3r::SupportSpotsGenerator::Params::brim_width

Referenced by Params().

◆ curled_distance_expansion

const float Slic3r::SupportSpotsGenerator::Params::curled_distance_expansion = 1.0f

◆ curling_tolerance_limit

const float Slic3r::SupportSpotsGenerator::Params::curling_tolerance_limit = 0.1f

◆ filament_density

const double Slic3r::SupportSpotsGenerator::Params::filament_density = 1.25e-3f

◆ filament_type

std::string Slic3r::SupportSpotsGenerator::Params::filament_type

◆ gravity_constant

const float Slic3r::SupportSpotsGenerator::Params::gravity_constant = 9806.65f

◆ malformation_distance_factors

const std::pair<float,float> Slic3r::SupportSpotsGenerator::Params::malformation_distance_factors = std::pair<float, float> { 0.2, 1.1 }

◆ malformations_additive_conflict_extruder_force

const float Slic3r::SupportSpotsGenerator::Params::malformations_additive_conflict_extruder_force = 65.0f * gravity_constant

◆ material_yield_strength

const double Slic3r::SupportSpotsGenerator::Params::material_yield_strength = 33.0f * 1e6f

◆ max_curled_height_factor

const float Slic3r::SupportSpotsGenerator::Params::max_curled_height_factor = 10.0f

◆ min_distance_between_support_points

const float Slic3r::SupportSpotsGenerator::Params::min_distance_between_support_points = 3.0f

◆ min_distance_to_allow_local_supports

const float Slic3r::SupportSpotsGenerator::Params::min_distance_to_allow_local_supports = 1.0f

◆ raft_layers_count

const int Slic3r::SupportSpotsGenerator::Params::raft_layers_count

◆ standard_extruder_conflict_force

const float Slic3r::SupportSpotsGenerator::Params::standard_extruder_conflict_force = 10.0f * gravity_constant

◆ support_points_interface_radius

const float Slic3r::SupportSpotsGenerator::Params::support_points_interface_radius = 1.5f

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