#include <src/libslic3r/Emboss.hpp>
◆ OrthoProject()
| Slic3r::Emboss::OrthoProject::OrthoProject |
( |
Transform3d |
matrix, |
|
|
Vec3d |
direction |
|
) |
| |
|
inline |
357 {}
Vec3d m_direction
Definition Emboss.hpp:352
Transform3d m_matrix_inv
Definition Emboss.hpp:353
Transform3d m_matrix
Definition Emboss.hpp:350
◆ create_front_back()
convert 2d point to 3d points
- Parameters
-
- Returns
- first - front spatial point second - back spatial point
Implements Slic3r::Emboss::IProjection.
1642 {
1645 return std::make_pair(front_tr,
project(front_tr));
1646}
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:1648
TPoint< P > front(const P &p)
Definition geometry_traits.hpp:872
◆ 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.
◆ unproject()
| std::optional< Vec2d > Emboss::OrthoProject::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.
1654{
1656 if (depth != nullptr) *depth = pp.z();
1657 return Vec2d(pp.x(), pp.y());
1658}
Eigen::Matrix< double, 2, 1, Eigen::DontAlign > Vec2d
Definition Point.hpp:51
◆ m_direction
| Vec3d Slic3r::Emboss::OrthoProject::m_direction |
|
private |
◆ m_matrix
◆ m_matrix_inv
The documentation for this class was generated from the following files: