#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/Emboss.hpp>
◆ ProjectTransform()
| Slic3r::Emboss::ProjectTransform::ProjectTransform |
( |
std::unique_ptr< IProjection > | core, |
|
|
const Transform3d & | tr ) |
|
inline |
◆ create_front_back()
| std::pair< Vec3d, Vec3d > Slic3r::Emboss::ProjectTransform::create_front_back |
( |
const Point & | p | ) |
const |
|
inlineoverridevirtual |
convert 2d point to 3d points
- Parameters
-
- Returns
- first - front spatial point second - back spatial point
Implements Slic3r::Emboss::IProjection.
395 {
396 auto [front, back] =
m_core->create_front_back(p);
397 return std::make_pair(
m_tr * front,
m_tr * back);
398 }
References m_core, and m_tr.
◆ project()
| Vec3d Slic3r::Emboss::ProjectTransform::project |
( |
const Vec3d & | point | ) |
const |
|
inlineoverridevirtual |
Move point with respect to projection direction e.g. Orthogonal projection will move with point by direction e.g. Spherical projection need to use center of projection.
- Parameters
-
| point | Spatial point coordinate |
- Returns
- Projected spatial point
Implements Slic3r::Emboss::IProject3d.
399 {
400 return m_core->project(point);
401 }
References m_core.
◆ unproject()
| std::optional< Vec2d > Slic3r::Emboss::ProjectTransform::unproject |
( |
const Vec3d & | p, |
|
|
double * | depth = nullptr ) const |
|
inlineoverridevirtual |
Back projection.
- Parameters
-
| p | Point to project |
| depth | [optional] Depth of 2d projected point. Be careful number is in 2d scale |
- Returns
- Uprojected point when it is possible
Implements Slic3r::Emboss::IProjection.
402 {
404 if (depth != nullptr)
406 return res;
407 }
References m_core, m_tr_inv, and z_scale.
◆ m_core
| std::unique_ptr<IProjection> Slic3r::Emboss::ProjectTransform::m_core |
|
private |
◆ m_tr
◆ m_tr_inv
◆ z_scale
| double Slic3r::Emboss::ProjectTransform::z_scale |
|
private |
The documentation for this class was generated from the following file:
- /home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/Emboss.hpp