|
| | IntersectionPoint ()=default |
| | IntersectionPoint (int point_id, int edge_id, const Point &pt) |
| | IntersectionPoint (const IntersectionReference &ir, const Point &pt) |
| Point & | operator+= (const Point &rhs) |
| Point & | operator-= (const Point &rhs) |
| Point & | operator*= (const double &rhs) |
| Point | operator* (const double &rhs) |
| bool | both_comp (const Point &rhs, const std::string &op) |
| bool | any_comp (const Point &rhs, const std::string &op) |
| void | rotate (double angle) |
| void | rotate (double cos_a, double sin_a) |
| void | rotate (double angle, const Point ¢er) |
| Point | rotated (double angle) const |
| Point | rotated (double cos_a, double sin_a) const |
| Point | rotated (double angle, const Point ¢er) const |
| Point | rotate_90_degree_ccw () const |
| int | nearest_point_index (const Points &points) const |
| int | nearest_point_index (const PointConstPtrs &points) const |
| int | nearest_point_index (const PointPtrs &points) const |
| bool | nearest_point (const Points &points, Point *point) const |
| double | ccw (const Point &p1, const Point &p2) const |
| double | ccw (const Line &line) const |
| double | ccw_angle (const Point &p1, const Point &p2) const |
| Point | projection_onto (const MultiPoint &poly) const |
| Point | projection_onto (const Line &line) const |
| double | distance_to (const Point &point) const |
◆ coord_type
◆ IntersectionPoint() [1/3]
| Slic3r::IntersectionPoint::IntersectionPoint |
( |
| ) |
|
|
default |
◆ IntersectionPoint() [2/3]
| Slic3r::IntersectionPoint::IntersectionPoint |
( |
int | point_id, |
|
|
int | edge_id, |
|
|
const Point & | pt ) |
|
inline |
◆ IntersectionPoint() [3/3]
◆ any_comp()
| bool Slic3r::Point::any_comp |
( |
const Point & | rhs, |
|
|
const std::string & | op ) |
|
inlineinherited |
238 {
239 if (op == ">")
240 return this->x() > rhs.x() || this->y() > rhs.y();
241 else if (op == "<")
242 return this->x() < rhs.x() || this->y() < rhs.y();
243 return false;
244 }
References Point().
◆ both_comp()
| bool Slic3r::Point::both_comp |
( |
const Point & | rhs, |
|
|
const std::string & | op ) |
|
inlineinherited |
230 {
231 if (op == ">")
232 return this->x() > rhs.x() && this->y() > rhs.y();
233 else if (op == "<")
234 return this->x() < rhs.x() && this->y() < rhs.y();
235 return false;
236 }
References Point().
◆ ccw() [1/2]
| double Slic3r::Point::ccw |
( |
const Line & | line | ) |
const |
|
inherited |
◆ ccw() [2/2]
| double Slic3r::Point::ccw |
( |
const Point & | p1, |
|
|
const Point & | p2 ) const |
|
inherited |
75{
76
77
79}
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
auto cast(const BoundingBoxBase< Tin > &b)
Definition BoundingBox.hpp:299
References Point(), Slic3r::cast(), and Slic3r::cross2().
Referenced by Slic3r::Point3::ccw(), Slic3r::Point3::ccw(), and ccw().
◆ ccw_angle()
| double Slic3r::Point::ccw_angle |
( |
const Point & | p1, |
|
|
const Point & | p2 ) const |
|
inherited |
◆ distance_to()
| double Slic3r::Point::distance_to |
( |
const Point & | point | ) |
const |
|
inlineinherited |
◆ nearest_point()
| bool Slic3r::Point::nearest_point |
( |
const Points & | points, |
|
|
Point * | point ) const |
|
inherited |
◆ nearest_point_index() [1/3]
| int Slic3r::Point::nearest_point_index |
( |
const PointConstPtrs & | points | ) |
const |
|
inherited |
207{
208 int idx = -1;
210
211 for (PointConstPtrs::const_iterator it = points.begin(); it != points.end(); ++it) {
212
213
215 if (distance != -1 && d > distance) continue;
216
217
218
220 if (distance != -1 && d > distance) continue;
221
222 idx = it - points.begin();
224
226 }
227
228 return idx;
229}
#define EPSILON
Definition ColorUtils.cpp:64
float distance(SpiralVase::SpiralPoint a, SpiralVase::SpiralPoint b)
Definition SpiralVase.cpp:19
constexpr T sqr(T x)
Definition libslic3r.h:301
References EPSILON, and Slic3r::sqr().
◆ nearest_point_index() [2/3]
| int Slic3r::Point::nearest_point_index |
( |
const PointPtrs & | points | ) |
const |
|
inherited |
232{
234 p.reserve(points.size());
235 for (PointPtrs::const_iterator it = points.begin(); it != points.end(); ++it)
236 p.push_back(*it);
238}
std::vector< const Point * > PointConstPtrs
Definition Point.hpp:75
References nearest_point_index().
◆ nearest_point_index() [3/3]
| int Slic3r::Point::nearest_point_index |
( |
const Points & | points | ) |
const |
|
inherited |
◆ new_scale() [1/2]
template<typename OtherDerived>
| Point Slic3r::Point::new_scale |
( |
const Eigen::MatrixBase< OtherDerived > & | v | ) |
|
|
inlinestaticinherited |
#define scale_(val)
Definition libslic3r.h:106
int64_t coord_t
Definition libslic3r.h:48
References Point(), and scale_.
◆ new_scale() [2/2]
References Point(), and scale_.
Referenced by Slic3r::PrintObject::PrintObject(), Slic3r::Geometry::circle_center_taubin_newton(), Slic3r::WipeTower2::cone_base_polygon(), libvgcode::convert_wipe_tower_to_vertices(), Slic3r::Geometry::convex_hull(), Slic3r::TriangleMesh::convex_hull(), Slic3r::detect_overhangs(), Slic3r::SupportSpotsGenerator::estimate_malformations(), Slic3r::WipeTower2::finish_layer(), Slic3r::FillAdaptive::generate_infill_lines_recursive(), Slic3r::WipeTower2::generate_rib_polygon(), Slic3r::WipeTower::generate_rib_polygon(), Slic3r::WipeTower2::generate_support_cone_wall(), Slic3r::FakeWipeTower::getFakeExtrusionPathsFromWipeTower2(), Slic3r::GUI::MeshClipper::is_projection_inside_cut(), Slic3r::GUI::Plater::priv::load_model_objects(), Slic3r::GCode::needs_retraction(), Slic3r::Polygon::new_scale(), Slic3r::Polyline::new_scale(), Slic3r::SeamPlacer::place_seam(), anonymous_namespace{OrcaSlicer_profile_validator.cpp}::place_wipe_tower(), Slic3r::GUI::MeshClipper::point_per_contour(), Slic3r::print_objects_from_model_object(), Slic3r::GUI::PartPlateList::set_default_wipe_tower_pos_for_plate(), Slic3r::sla_instances(), Slic3r::GCodeWriter::spiral_lift_fits_printable_area(), Slic3r::WipeTower2::toolchange_Change(), and Slic3r::AvoidCrossingPerimeters::travel_to().
◆ operator*()
| Point Slic3r::Point::operator* |
( |
const double & | rhs | ) |
|
|
inlineinherited |
229{
return Point(this->x() * rhs, this->y() * rhs); }
References Point().
◆ operator*=()
| Point & Slic3r::Point::operator*= |
( |
const double & | rhs | ) |
|
|
inlineinherited |
228{ this->x() =
coord_t(this->x() * rhs); this->y() =
coord_t(this->y() * rhs);
return *
this; }
References Point().
◆ operator+=()
| Point & Slic3r::Point::operator+= |
( |
const Point & | rhs | ) |
|
|
inlineinherited |
226{ this->x() += rhs.x(); this->y() += rhs.y(); return *this; }
References Point().
◆ operator-=()
| Point & Slic3r::Point::operator-= |
( |
const Point & | rhs | ) |
|
|
inlineinherited |
227{ this->x() -= rhs.x(); this->y() -= rhs.y(); return *this; }
References Point().
◆ projection_onto() [1/2]
| Point Slic3r::Point::projection_onto |
( |
const Line & | line | ) |
const |
|
inherited |
114{
115 if (line.a == line.b) return line.a;
116
117
118
119
120
121
122
123
124
125
126 double lx = (double)(line.b(0) - line.a(0));
127 double ly = (double)(line.b(1) - line.a(1));
128 double theta = ( (double)(line.b(0) - (*this)(0))*lx + (double)(line.b(1)- (*this)(1))*ly )
130
131 if (0.0 <= theta && theta <= 1.0)
133
134
135 return ((line.a - *this).cast<double>().squaredNorm() < (line.b - *this).cast<double>().squaredNorm()) ? line.a : line.b;
136}
double coordf_t
Definition GUI_ObjectList.hpp:46
References Point(), Slic3r::Line::a, Slic3r::Line::b, and Slic3r::sqr().
◆ projection_onto() [2/2]
◆ rotate() [1/3]
| void Slic3r::Point::rotate |
( |
double | angle | ) |
|
|
inlineinherited |
◆ rotate() [2/3]
| void Slic3r::Point::rotate |
( |
double | angle, |
|
|
const Point & | center ) |
|
inherited |
◆ rotate() [3/3]
| void Slic3r::Point::rotate |
( |
double | cos_a, |
|
|
double | sin_a ) |
|
inlineinherited |
247 {
248 double cur_x = (double)this->x();
249 double cur_y = (double)this->y();
250 this->x() = (
coord_t)round(cos_a * cur_x - sin_a * cur_y);
251 this->y() = (
coord_t)round(cos_a * cur_y + sin_a * cur_x);
252 }
◆ rotate_90_degree_ccw()
| Point Slic3r::Point::rotate_90_degree_ccw |
( |
| ) |
const |
|
inlineinherited |
258{
return Point(-this->y(), this->x()); }
References Point().
◆ rotated() [1/3]
| Point Slic3r::Point::rotated |
( |
double | angle | ) |
const |
|
inlineinherited |
◆ rotated() [2/3]
| Point Slic3r::Point::rotated |
( |
double | angle, |
|
|
const Point & | center ) const |
|
inlineinherited |
◆ rotated() [3/3]
| Point Slic3r::Point::rotated |
( |
double | cos_a, |
|
|
double | sin_a ) const |
|
inlineinherited |
◆ edge_id
| int Slic3r::IntersectionReference::edge_id { -1 } |
|
inherited |
◆ point_id
| int Slic3r::IntersectionReference::point_id { -1 } |
|
inherited |
The documentation for this class was generated from the following file: