◆ Intersection()
| Slic3r::FillAdaptive::Intersection::Intersection |
( |
const Line & | closest_line, |
|
|
const Line & | intersect_line, |
|
|
Polyline * | intersect_pl, |
|
|
const Point & | intersect_point, |
|
|
bool | front ) |
|
inline |
548 :
550 {
551
554#ifndef NDEBUG
555 {
556 Vec2d v1n = v1.normalized();
557 Vec2d v2n = v2.normalized();
558 double c =
cross2(v1n, v2n);
559 assert(std::abs(c) > sin(
M_PI / 12.));
560 }
561#endif
563 }
#define M_PI
Definition ExtrusionSimulator.cpp:31
int32_t cross2(const Eigen::MatrixBase< Eigen::Matrix< int32_t, 2, 1, Options > > &v1, const Eigen::MatrixBase< Eigen::Matrix< int32_t, 2, 1, Options > > &v2)=delete
Eigen::Matrix< double, 2, 1, Eigen::DontAlign > Vec2d
Definition Point.hpp:67
Point intersect_point
Definition FillAdaptive.cpp:537
const Line * closest_line
Definition FillAdaptive.cpp:530
Vec2d intersect_line_dir() const
Definition FillAdaptive.cpp:580
bool front
Definition FillAdaptive.cpp:539
const Line * intersect_line
Definition FillAdaptive.cpp:533
Polyline * intersect_pl
Definition FillAdaptive.cpp:535
bool left
Definition FillAdaptive.cpp:541
References Slic3r::Line::b, closest_line, Slic3r::cross2(), front, intersect_line, intersect_line_dir(), intersect_pl, intersect_point, and M_PI.
◆ fresh()
| bool Slic3r::FillAdaptive::Intersection::fresh |
( |
| ) |
const |
| throw | ( | ) | | | |
|
inline |
◆ intersect_line_dir()
| Vec2d Slic3r::FillAdaptive::Intersection::intersect_line_dir |
( |
| ) |
const |
| throw | ( | ) | | | |
|
inline |
◆ other_hook()
| std::optional< Line > Slic3r::FillAdaptive::Intersection::other_hook |
( |
| ) |
const |
|
inline |
565 {
566 std::optional<Line> out;
568 if (pts.size() >= 3)
569 out = this->
front ? Line(pts[1], pts[2]) : Line(pts[pts.size() - 2], pts[pts.size() - 3]);
570 return out;
571 }
std::vector< Point, PointsAllocator< Point > > Points
Definition Point.hpp:73
References intersect_pl.
Referenced by other_hook_intersects().
◆ other_hook_intersects() [1/2]
| bool Slic3r::FillAdaptive::Intersection::other_hook_intersects |
( |
const Line & | l | ) |
|
|
inline |
◆ other_hook_intersects() [2/2]
| bool Slic3r::FillAdaptive::Intersection::other_hook_intersects |
( |
const Line & | l, |
|
|
Point & | pt ) |
|
inline |
◆ closest_line
| const Line* Slic3r::FillAdaptive::Intersection::closest_line |
◆ front
| bool Slic3r::FillAdaptive::Intersection::front |
◆ intersect_line
| const Line* Slic3r::FillAdaptive::Intersection::intersect_line |
◆ intersect_pl
| Polyline* Slic3r::FillAdaptive::Intersection::intersect_pl |
◆ intersect_point
| Point Slic3r::FillAdaptive::Intersection::intersect_point |
◆ left
| bool Slic3r::FillAdaptive::Intersection::left |
◆ used
| bool Slic3r::FillAdaptive::Intersection::used = false |
The documentation for this struct was generated from the following file: