OrcaSlicer latest
OrcaSlicer
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
1165 :
1166 start(start), end(end), points(std::move(points)), consumed(false) { this->length = Slic3r::length(this->points); }
double length(const Points &pts)
Definition MultiPoint.hpp:181
bool consumed
Definition TriangleMeshSlicer.cpp:1175
IntersectionReference end
Definition TriangleMeshSlicer.cpp:1172
double length
Definition TriangleMeshSlicer.cpp:1174
Points points
Definition TriangleMeshSlicer.cpp:1173
IntersectionReference start
Definition TriangleMeshSlicer.cpp:1171

References consumed, end, Slic3r::length(), length, points, and start.

Here is the call graph for this function:

Member Function Documentation

◆ reverse()

void Slic3r::OpenPolyline::reverse ( )
inline
1167 {
1168 std::swap(start, end);
1169 std::reverse(points.begin(), points.end());
1170 }

References end, points, and start.

Member Data Documentation

◆ consumed

bool Slic3r::OpenPolyline::consumed

◆ end

◆ length

double Slic3r::OpenPolyline::length

Referenced by OpenPolyline().

◆ points

Points Slic3r::OpenPolyline::points

◆ start

IntersectionReference Slic3r::OpenPolyline::start

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