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

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

+ Inheritance diagram for Slic3r::sla::DiffBridge:
+ Collaboration diagram for Slic3r::sla::DiffBridge:

Public Member Functions

 DiffBridge (const Vec3d &p_s, const Vec3d &p_e, double r_s, double r_e)
 
 DiffBridge (const Junction &j_s, const Junction &j_e)
 
double get_length () const
 
Vec3d get_dir () const
 

Public Attributes

double end_r
 
double r = 0.8
 
Vec3d startp = Vec3d::Zero()
 
Vec3d endp = Vec3d::Zero()
 
long id = ID_UNSET
 

Static Public Attributes

static const constexpr long ID_UNSET = -1
 

Detailed Description

Constructor & Destructor Documentation

◆ DiffBridge() [1/2]

Slic3r::sla::DiffBridge::DiffBridge ( const Vec3d p_s,
const Vec3d p_e,
double  r_s,
double  r_e 
)
inline
197 : Bridge{p_s, p_e, r_s}, end_r{r_e}
198 {}
Bridge(const Vec3d &j1, const Vec3d &j2, double r_mm=0.8)
Definition SupportTreeBuilder.hpp:184
double end_r
Definition SupportTreeBuilder.hpp:194

◆ DiffBridge() [2/2]

Slic3r::sla::DiffBridge::DiffBridge ( const Junction j_s,
const Junction j_e 
)
inline
201 : Bridge{j_s.pos, j_e.pos, j_s.r}, end_r{j_e.r}
202 {}

Member Function Documentation

◆ get_dir()

Vec3d Slic3r::sla::Bridge::get_dir ( ) const
inlineinherited
190{ return (endp - startp).normalized(); }
Vec3d endp
Definition SupportTreeBuilder.hpp:182
Vec3d startp
Definition SupportTreeBuilder.hpp:182

References Slic3r::sla::Bridge::endp, and Slic3r::sla::Bridge::startp.

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

+ Here is the caller graph for this function:

◆ get_length()

double Slic3r::sla::Bridge::get_length ( ) const
inlineinherited
189{ return (endp - startp).norm(); }

References Slic3r::sla::Bridge::endp, and Slic3r::sla::Bridge::startp.

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

+ Here is the caller graph for this function:

Member Data Documentation

◆ end_r

double Slic3r::sla::DiffBridge::end_r

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

◆ endp

Vec3d Slic3r::sla::Bridge::endp = Vec3d::Zero()
inherited

◆ id

◆ ID_UNSET

◆ r

double Slic3r::sla::Bridge::r = 0.8
inherited

◆ startp

Vec3d Slic3r::sla::Bridge::startp = Vec3d::Zero()
inherited

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