#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/Emboss.hpp>
|
| | ProjectZ (double depth) |
| std::pair< Vec3d, Vec3d > | create_front_back (const Point &p) const override |
| | convert 2d point to 3d points
|
| Vec3d | project (const Vec3d &point) const override |
| | 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.
|
| std::optional< Vec2d > | unproject (const Vec3d &p, double *depth=nullptr) const override |
| | Back projection.
|
◆ ProjectZ()
| Slic3r::Emboss::ProjectZ::ProjectZ |
( |
double | depth | ) |
|
|
inlineexplicit |
double m_depth
Definition Emboss.hpp:352
References m_depth.
◆ create_front_back()
| std::pair< Vec3d, Vec3d > Emboss::ProjectZ::create_front_back |
( |
const Point & | p | ) |
const |
|
overridevirtual |
convert 2d point to 3d points
- Parameters
-
- Returns
- first - front spatial point second - back spatial point
Implements Slic3r::Emboss::IProjection.
1732{
1733 Vec3d front(p.x(), p.y(), 0.);
1734 return std::make_pair(front,
project(front));
1735}
Vec3d project(const Vec3d &point) const override
Move point with respect to projection direction e.g. Orthogonal projection will move with point by di...
Definition Emboss.cpp:1737
Eigen::Matrix< double, 3, 1, Eigen::DontAlign > Vec3d
Definition Point.hpp:68
References project().
◆ project()
| Vec3d Emboss::ProjectZ::project |
( |
const Vec3d & | point | ) |
const |
|
overridevirtual |
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.
1738{
1741 return res;
1742}
References m_depth.
Referenced by create_front_back().
◆ unproject()
| std::optional< Vec2d > Emboss::ProjectZ::unproject |
( |
const Vec3d & | p, |
|
|
double * | depth = nullptr ) const |
|
overridevirtual |
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.
1744 {
1745 return Vec2d(p.x(), p.y());
1746}
Eigen::Matrix< double, 2, 1, Eigen::DontAlign > Vec2d
Definition Point.hpp:67
◆ m_depth
| double Slic3r::Emboss::ProjectZ::m_depth |
The documentation for this class was generated from the following files:
- /home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/Emboss.hpp
- /home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/Emboss.cpp