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

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

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

Public Member Functions

 Bridge (const Vec3d &j1, const Vec3d &j2, double r_mm=0.8)
 
double get_length () const
 
Vec3d get_dir () const
 

Public Attributes

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

◆ Bridge()

Slic3r::sla::Bridge::Bridge ( const Vec3d j1,
const Vec3d j2,
double  r_mm = 0.8 
)
inline
186 : r{r_mm}, startp{j1}, endp{j2}
187 {}
Vec3d endp
Definition SupportTreeBuilder.hpp:182
Vec3d startp
Definition SupportTreeBuilder.hpp:182
double r
Definition SupportTreeBuilder.hpp:181

Member Function Documentation

◆ get_dir()

Vec3d Slic3r::sla::Bridge::get_dir ( ) const
inline
190{ return (endp - startp).normalized(); }

References endp, and startp.

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

+ Here is the caller graph for this function:

◆ get_length()

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

References endp, and startp.

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

+ Here is the caller graph for this function:

Member Data Documentation

◆ endp

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

◆ id

◆ ID_UNSET

◆ r

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

◆ startp

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

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