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

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

+ Collaboration diagram for Slic3r::sla::SupportPoint:

Public Member Functions

 SupportPoint ()
 
 SupportPoint (float pos_x, float pos_y, float pos_z, float head_radius, bool new_island=false)
 
 SupportPoint (Vec3f position, float head_radius, bool new_island=false)
 
 SupportPoint (Eigen::Matrix< float, 5, 1, Eigen::DontAlign > data)
 
bool operator== (const SupportPoint &sp) const
 
bool operator!= (const SupportPoint &sp) const
 
template<class Archive >
void serialize (Archive &ar)
 

Public Attributes

Vec3f pos
 
float head_front_radius
 
bool is_new_island
 

Detailed Description

Constructor & Destructor Documentation

◆ SupportPoint() [1/4]

Slic3r::sla::SupportPoint::SupportPoint ( )
inline
27 : pos(Vec3f::Zero()), head_front_radius(0.f), is_new_island(false)
28 {}
Vec3f pos
Definition SupportPoint.hpp:22
float head_front_radius
Definition SupportPoint.hpp:23
bool is_new_island
Definition SupportPoint.hpp:24

◆ SupportPoint() [2/4]

Slic3r::sla::SupportPoint::SupportPoint ( float  pos_x,
float  pos_y,
float  pos_z,
float  head_radius,
bool  new_island = false 
)
inline
35 : pos(pos_x, pos_y, pos_z)
36 , head_front_radius(head_radius)
37 , is_new_island(new_island)
38 {}

◆ SupportPoint() [3/4]

Slic3r::sla::SupportPoint::SupportPoint ( Vec3f  position,
float  head_radius,
bool  new_island = false 
)
inline
41 : pos(position)
42 , head_front_radius(head_radius)
43 , is_new_island(new_island)
44 {}

◆ SupportPoint() [4/4]

Slic3r::sla::SupportPoint::SupportPoint ( Eigen::Matrix< float, 5, 1, Eigen::DontAlign data)
inline
47 : pos(data(0), data(1), data(2))
49 , is_new_island(data(4) != 0.f)
50 {}
constexpr auto data(C &c) -> decltype(c.data())
Definition span.hpp:195

Member Function Documentation

◆ operator!=()

bool Slic3r::sla::SupportPoint::operator!= ( const SupportPoint sp) const
inline
59{ return !(sp == (*this)); }

◆ operator==()

bool Slic3r::sla::SupportPoint::operator== ( const SupportPoint sp) const
inline
53 {
54 float rdiff = std::abs(head_front_radius - sp.head_front_radius);
55 return (pos == sp.pos) && rdiff < float(EPSILON) &&
56 is_new_island == sp.is_new_island;
57 }
static constexpr double EPSILON
Definition libslic3r.h:51

References EPSILON, head_front_radius, is_new_island, and pos.

◆ serialize()

template<class Archive >
void Slic3r::sla::SupportPoint::serialize ( Archive &  ar)
inline
62 {
64 }

References head_front_radius, is_new_island, and pos.

Member Data Documentation

◆ head_front_radius

float Slic3r::sla::SupportPoint::head_front_radius

◆ is_new_island

bool Slic3r::sla::SupportPoint::is_new_island

◆ pos


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