OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::BrimPoint Struct Reference

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

Public Member Functions

 BrimPoint ()
 BrimPoint (float pos_x, float pos_y, float pos_z, float head_radius)
 BrimPoint (Vec3f position, float head_radius)
Vec3f transform (const Transform3d &trsf)
void set_transform (const Transform3d &trsf)
bool operator== (const BrimPoint &sp) const
bool operator!= (const BrimPoint &sp) const
template<class Archive>
void serialize (Archive &ar)

Public Attributes

Vec3f pos
float head_front_radius

Detailed Description

Constructor & Destructor Documentation

◆ BrimPoint() [1/3]

Slic3r::BrimPoint::BrimPoint ( )
inline
26 : pos(Vec3f::Zero()), head_front_radius(0.f)
27 {}
float head_front_radius
Definition BrimEarsPoint.hpp:23
Vec3f pos
Definition BrimEarsPoint.hpp:22

References head_front_radius, and pos.

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

Here is the caller graph for this function:

◆ BrimPoint() [2/3]

Slic3r::BrimPoint::BrimPoint ( float pos_x,
float pos_y,
float pos_z,
float head_radius )
inline
33 : pos(pos_x, pos_y, pos_z)
34 , head_front_radius(head_radius)
35 {}

References head_front_radius, and pos.

◆ BrimPoint() [3/3]

Slic3r::BrimPoint::BrimPoint ( Vec3f position,
float head_radius )
inline
38 : pos(position)
39 , head_front_radius(head_radius)
40 {}

References head_front_radius, and pos.

Member Function Documentation

◆ operator!=()

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

References BrimPoint().

Here is the call graph for this function:

◆ operator==()

bool Slic3r::BrimPoint::operator== ( const BrimPoint & sp) const
inline
54 {
55 float rdiff = std::abs(head_front_radius - sp.head_front_radius);
56 return (pos == sp.pos) && rdiff < float(EPSILON);
57 }
#define EPSILON
Definition ColorUtils.cpp:64

References BrimPoint(), EPSILON, head_front_radius, and pos.

Here is the call graph for this function:

◆ serialize()

template<class Archive>
void Slic3r::BrimPoint::serialize ( Archive & ar)
inline
61 {
63 }

References head_front_radius, and pos.

◆ set_transform()

void Slic3r::BrimPoint::set_transform ( const Transform3d & trsf)
inline
49 {
50 pos = transform(trsf);
51 }
Vec3f transform(const Transform3d &trsf)
Definition BrimEarsPoint.hpp:42

References pos, and transform().

Here is the call graph for this function:

◆ transform()

Vec3f Slic3r::BrimPoint::transform ( const Transform3d & trsf)
inline
43 {
44 Vec3d result = trsf * pos.cast<double>();
45 return result.cast<float>();
46 }
Eigen::Matrix< double, 3, 1, Eigen::DontAlign > Vec3d
Definition Point.hpp:68

References pos.

Referenced by Slic3r::GUI::GLGizmoBrimEars::make_polygon(), and set_transform().

Here is the caller graph for this function:

Member Data Documentation

◆ head_front_radius

◆ pos


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