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

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

+ Collaboration diagram for Slic3r::sla::DefaultWideningModel:

Public Member Functions

double operator() (const Ball &src, const Vec3d &, double len)
 

Public Attributes

const SupportableMeshsm
 

Static Public Attributes

static constexpr double WIDENING_SCALE = 0.02
 

Detailed Description

Member Function Documentation

◆ operator()()

double Slic3r::sla::DefaultWideningModel::operator() ( const Ball src,
const Vec3d ,
double  len 
)
inline
751 {
752 static_assert(IsWideningFn<DefaultWideningModel>,
753 "DefaultWideningModel is not a widening function");
754
755 double w = WIDENING_SCALE * sm.cfg.pillar_widening_factor * len;
756 return std::max(src.R, sm.cfg.head_back_radius_mm) + w;
757 };
static constexpr double WIDENING_SCALE
Definition SupportTreeUtils.hpp:748
const SupportableMesh & sm
Definition SupportTreeUtils.hpp:749
double head_back_radius_mm
Definition SupportTree.hpp:34
double pillar_widening_factor
Definition SupportTree.hpp:51
SupportTreeConfig cfg
Definition SupportTree.hpp:117

References Slic3r::sla::SupportableMesh::cfg, Slic3r::sla::SupportTreeConfig::head_back_radius_mm, Slic3r::sla::SupportTreeConfig::pillar_widening_factor, and Slic3r::sla::Ball::R.

Member Data Documentation

◆ sm

const SupportableMesh& Slic3r::sla::DefaultWideningModel::sm

◆ WIDENING_SCALE

constexpr double Slic3r::sla::DefaultWideningModel::WIDENING_SCALE = 0.02
staticconstexpr

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