OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::sla::SupportPoint Struct Reference

#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/SLA/SupportPoint.hpp>

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

References head_front_radius, is_new_island, and pos.

Referenced by operator!=(), and operator==().

Here is the caller graph for this function:

◆ 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 {}

References head_front_radius, is_new_island, and pos.

◆ 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 {}

References head_front_radius, is_new_island, and pos.

◆ SupportPoint() [4/4]

Slic3r::sla::SupportPoint::SupportPoint ( Eigen::Matrix< float, 5, 1, Eigen::DontAlign > data)
inline
47 : pos(data(0), data(1), data(2))
48 , head_front_radius(data(3))
49 , is_new_island(data(4) != 0.f)
50 {}

References head_front_radius, is_new_island, and pos.

Member Function Documentation

◆ operator!=()

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

References SupportPoint().

Here is the call graph for this function:

◆ 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 }
#define EPSILON
Definition ColorUtils.cpp:64

References SupportPoint(), EPSILON, head_front_radius, is_new_island, and pos.

Here is the call graph for this function:

◆ 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

Vec3f Slic3r::sla::SupportPoint::pos

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