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

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

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

Public Member Functions

 Pillar (const Vec3d &endp, double h, double start_radius, double end_radius)
 
 Pillar (const Vec3d &endp, double h, double start_radius)
 
Vec3d startpoint () const
 
const Vec3dendpoint () const
 

Public Attributes

double height
 
double r_start
 
double r_end
 
Vec3d endpt
 
bool starts_from_head = true
 
long start_junction_id = ID_UNSET
 
unsigned bridges = 0
 
unsigned links = 0
 
long id = ID_UNSET
 

Static Public Attributes

static const constexpr long ID_UNSET = -1
 

Detailed Description

Constructor & Destructor Documentation

◆ Pillar() [1/2]

Slic3r::sla::Pillar::Pillar ( const Vec3d endp,
double  h,
double  start_radius,
double  end_radius 
)
inline
146 : height{h}
147 , r_start(start_radius)
148 , r_end(end_radius)
149 , endpt(endp)
150 , starts_from_head(false)
151 {}
double height
Definition SupportTreeBuilder.hpp:132
double r_start
Definition SupportTreeBuilder.hpp:132
bool starts_from_head
Definition SupportTreeBuilder.hpp:136
Vec3d endpt
Definition SupportTreeBuilder.hpp:133
double r_end
Definition SupportTreeBuilder.hpp:132

◆ Pillar() [2/2]

Slic3r::sla::Pillar::Pillar ( const Vec3d endp,
double  h,
double  start_radius 
)
inline
154 : Pillar(endp, h, start_radius, start_radius)
155 {}
Pillar(const Vec3d &endp, double h, double start_radius, double end_radius)
Definition SupportTreeBuilder.hpp:145

Member Function Documentation

◆ endpoint()

const Vec3d & Slic3r::sla::Pillar::endpoint ( ) const
inline
162{ return endpt; }

References endpt.

Referenced by Slic3r::sla::DefaultSupportTree::connect_to_model_body(), Slic3r::sla::DefaultSupportTree::interconnect(), and Slic3r::sla::DefaultSupportTree::interconnect_pillars().

+ Here is the caller graph for this function:

◆ startpoint()

Vec3d Slic3r::sla::Pillar::startpoint ( ) const
inline
158 {
159 return {endpt.x(), endpt.y(), endpt.z() + height};
160 }

References endpt, and height.

Referenced by Slic3r::sla::DefaultSupportTree::interconnect().

+ Here is the caller graph for this function:

Member Data Documentation

◆ bridges

unsigned Slic3r::sla::Pillar::bridges = 0

◆ endpt

◆ height

◆ id

◆ ID_UNSET

◆ links

unsigned Slic3r::sla::Pillar::links = 0

◆ r_end

double Slic3r::sla::Pillar::r_end

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

◆ r_start

◆ start_junction_id

long Slic3r::sla::Pillar::start_junction_id = ID_UNSET

◆ starts_from_head

bool Slic3r::sla::Pillar::starts_from_head = true

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