#include <src/libslic3r/Emboss.hpp>
◆ ProjectScale()
| Slic3r::Emboss::ProjectScale::ProjectScale |
( |
std::unique_ptr< IProjection > |
core, |
|
|
double |
scale |
|
) |
| |
|
inline |
322 {}
int scale(const int val)
Definition WipeTowerDialog.cpp:14
double m_scale
Definition Emboss.hpp:318
std::unique_ptr< IProjection > core
Definition Emboss.hpp:317
◆ create_front_back()
convert 2d point to 3d points
- Parameters
-
- Returns
- first - front spatial point second - back spatial point
Implements Slic3r::Emboss::IProjection.
326 {
327 auto res =
core->create_front_back(p);
329 }
References core, and m_scale.
◆ project()
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.
330 {
331 return core->project(point);
332 }
References core.
◆ unproject()
| std::optional< Vec2d > Slic3r::Emboss::ProjectScale::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.
333 {
335 if (depth !=
nullptr) *depth *=
m_scale;
336 return res;
337 }
References core, and m_scale.
◆ core
| std::unique_ptr<IProjection> Slic3r::Emboss::ProjectScale::core |
|
private |
◆ m_scale
| double Slic3r::Emboss::ProjectScale::m_scale |
|
private |
The documentation for this class was generated from the following file: