OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::BeltBackTransform Class Reference

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

Public Member Functions

 BeltBackTransform ()=default
bool init_from_config (const PrintConfig &config)
Vec3d apply (const Vec3d &pos) const

Private Attributes

bool m_active = false
Transform3d m_inverse = Transform3d::Identity()

Detailed Description

Constructor & Destructor Documentation

◆ BeltBackTransform()

Slic3r::BeltBackTransform::BeltBackTransform ( )
default

Member Function Documentation

◆ apply()

Vec3d Slic3r::BeltBackTransform::apply ( const Vec3d & pos) const
27{
28 if (!m_active)
29 return pos;
30 return m_inverse * pos;
31}
bool m_active
Definition BeltBackTransform.hpp:32
Transform3d m_inverse
Definition BeltBackTransform.hpp:33
Vec3d pos(const Pt &p)
Definition ReprojectPointsOnMesh.hpp:16

References m_active, and m_inverse.

◆ init_from_config()

bool Slic3r::BeltBackTransform::init_from_config ( const PrintConfig & config)
9{
10 m_active = false;
11 m_inverse = Transform3d::Identity();
12
13 if (!config.belt_printer.value)
14 return false;
15
16 // Build the forward pipeline (the rotation) and store its inverse.
18 if (forward.isApprox(Transform3d::Identity()))
19 return false;
20
21 m_inverse = forward.inverse();
22 m_active = true;
23 return true;
24}
static Transform3d build_forward_transform(const PrintConfig &config)
Definition BeltTransform.cpp:38
Eigen::Transform< double, 3, Eigen::Affine, Eigen::DontAlign > Transform3d
Definition Point.hpp:96

References Slic3r::BeltTransformPipeline::build_forward_transform(), m_active, and m_inverse.

Here is the call graph for this function:

Member Data Documentation

◆ m_active

bool Slic3r::BeltBackTransform::m_active = false
private

Referenced by apply(), and init_from_config().

◆ m_inverse

Transform3d Slic3r::BeltBackTransform::m_inverse = Transform3d::Identity()
private

Referenced by apply(), and init_from_config().


The documentation for this class was generated from the following files: