Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
Slic3r::OpenPolyline Struct Reference
+ Collaboration diagram for Slic3r::OpenPolyline:

Public Member Functions

 OpenPolyline ()=default
 
 OpenPolyline (const IntersectionReference &start, const IntersectionReference &end, Points &&points)
 
void reverse ()
 

Public Attributes

IntersectionReference start
 
IntersectionReference end
 
Points points
 
double length
 
bool consumed
 

Detailed Description

Constructor & Destructor Documentation

◆ OpenPolyline() [1/2]

Slic3r::OpenPolyline::OpenPolyline ( )
default

◆ OpenPolyline() [2/2]

Slic3r::OpenPolyline::OpenPolyline ( const IntersectionReference start,
const IntersectionReference end,
Points &&  points 
)
inline
950 :
951 start(start), end(end), points(std::move(points)), consumed(false) { this->length = Slic3r::length(this->points); }
double length(const Points &pts)
Definition MultiPoint.hpp:116
bool consumed
Definition TriangleMeshSlicer.cpp:960
IntersectionReference end
Definition TriangleMeshSlicer.cpp:957
double length
Definition TriangleMeshSlicer.cpp:959
Points points
Definition TriangleMeshSlicer.cpp:958
IntersectionReference start
Definition TriangleMeshSlicer.cpp:956

References Slic3r::length().

+ Here is the call graph for this function:

Member Function Documentation

◆ reverse()

void Slic3r::OpenPolyline::reverse ( )
inline
952 {
953 std::swap(start, end);
954 std::reverse(points.begin(), points.end());
955 }

Member Data Documentation

◆ consumed

bool Slic3r::OpenPolyline::consumed

◆ end

IntersectionReference Slic3r::OpenPolyline::end

◆ length

double Slic3r::OpenPolyline::length

◆ points

Points Slic3r::OpenPolyline::points

◆ start

IntersectionReference Slic3r::OpenPolyline::start

The documentation for this struct was generated from the following file: