![]() |
Prusa Slicer 2.6.0
|
#include <src/clipper/clipper.hpp>
Collaboration diagram for ClipperLib::ClipperOffset:Public Member Functions | |
| ClipperOffset (double miterLimit=2.0, double roundPrecision=0.25, double shortestEdgeLength=0.) | |
| ~ClipperOffset () | |
| void | AddPath (const Path &path, JoinType joinType, EndType endType) |
| template<typename PathsProvider > | |
| void | AddPaths (PathsProvider &&paths, JoinType joinType, EndType endType) |
| void | Execute (Paths &solution, double delta) |
| void | Execute (PolyTree &solution, double delta) |
| void | Clear () |
Public Attributes | |
| double | MiterLimit |
| double | ArcTolerance |
| double | ShortestEdgeLength |
Private Member Functions | |
| void | FixOrientations () |
| void | DoOffset (double delta) |
| void | OffsetPoint (int j, int &k, JoinType jointype) |
| void | DoSquare (int j, int k) |
| void | DoMiter (int j, int k, double r) |
| void | DoRound (int j, int k) |
Private Attributes | |
| Paths | m_destPolys |
| Path | m_srcPoly |
| Path | m_destPoly |
| std::vector< DoublePoint, Allocator< DoublePoint > > | m_normals |
| double | m_delta |
| double | m_sinA |
| double | m_sin |
| double | m_cos |
| double | m_miterLim |
| double | m_StepsPerRad |
| IntPoint | m_lowest |
| PolyNode | m_polyNodes |
|
inline |
|
inline |
References ClipperLib::PolyNode::AddChild(), ClipperLib::PolyNode::ChildCount(), ClipperLib::PolyNode::Childs, ClipperLib::PolyNode::Contour, ClipperLib::etClosedLine, ClipperLib::etClosedPolygon, ClipperLib::IntPoint2d(), ClipperLib::PolyNode::m_endtype, ClipperLib::PolyNode::m_jointype, m_lowest, m_polyNodes, and ShortestEdgeLength.
Referenced by Slic3r::Algorithm::expolygons_to_zpaths_expanded_opened(), Slic3r::expolygons_to_zpaths_shrunk(), Slic3r::offset_expolygon_inner(), Slic3r::raw_offset(), Slic3r::FFFSupport::tree_supports_generate_paths(), Slic3r::Algorithm::wavefront_initial(), and Slic3r::Algorithm::wavefront_step().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
| void ClipperLib::ClipperOffset::Clear | ( | ) |
References ClipperLib::PolyNode::ChildCount(), ClipperLib::PolyNode::Childs, m_lowest, and m_polyNodes.
Referenced by Slic3r::Algorithm::expolygons_to_zpaths_expanded_opened(), Slic3r::expolygons_to_zpaths_shrunk(), Slic3r::raw_offset(), Slic3r::Algorithm::wavefront_initial(), and Slic3r::Algorithm::wavefront_step().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
References ClipperLib::IntPoint2d(), m_delta, m_destPoly, m_normals, m_srcPoly, and ClipperLib::Round().
Referenced by OffsetPoint().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
References ArcTolerance, ClipperLib::PolyNode::ChildCount(), ClipperLib::PolyNode::Childs, ClipperLib::PolyNode::Contour, ClipperLib::def_arc_tolerance, DoRound(), DoSquare(), ClipperLib::etClosedLine, ClipperLib::etClosedPolygon, ClipperLib::etOpenButt, ClipperLib::etOpenSquare, ClipperLib::GetUnitNormal(), ClipperLib::IntPoint2d(), ClipperLib::jtRound, m_cos, m_delta, m_destPoly, m_destPolys, ClipperLib::PolyNode::m_endtype, ClipperLib::PolyNode::m_jointype, m_miterLim, m_normals, m_polyNodes, m_sin, m_sinA, m_srcPoly, m_StepsPerRad, MiterLimit, NEAR_ZERO, OffsetPoint(), ClipperLib::pi, ClipperLib::Round(), and ClipperLib::two_pi.
Referenced by Execute(), and Execute().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
References ClipperLib::IntPoint2d(), m_cos, m_delta, m_destPoly, m_normals, m_sin, m_sinA, m_srcPoly, m_StepsPerRad, and ClipperLib::Round().
Referenced by DoOffset(), and OffsetPoint().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
References ClipperLib::IntPoint2d(), m_delta, m_destPoly, m_normals, m_sinA, m_srcPoly, and ClipperLib::Round().
Referenced by DoOffset(), and OffsetPoint().
Here is the call graph for this function:
Here is the caller graph for this function:References ClipperLib::ClipperBase::AddPath(), ClipperLib::ClipperBase::AddPaths(), ClipperLib::IntRect::bottom, ClipperLib::ctUnion, DoOffset(), ClipperLib::Clipper::Execute(), FixOrientations(), ClipperLib::ClipperBase::GetBounds(), ClipperLib::IntPoint2d(), ClipperLib::IntRect::left, m_destPolys, ClipperLib::pftNegative, ClipperLib::pftPositive, ClipperLib::ptSubject, ClipperLib::Clipper::ReverseSolution(), ClipperLib::IntRect::right, and ClipperLib::IntRect::top.
Referenced by Slic3r::Algorithm::expolygons_to_zpaths_expanded_opened(), Slic3r::expolygons_to_zpaths_shrunk(), Slic3r::offset_expolygon_inner(), Slic3r::raw_offset(), Slic3r::FFFSupport::tree_supports_generate_paths(), Slic3r::Algorithm::wavefront_initial(), and Slic3r::Algorithm::wavefront_step().
Here is the call graph for this function:
Here is the caller graph for this function:References ClipperLib::ClipperBase::AddPath(), ClipperLib::ClipperBase::AddPaths(), ClipperLib::IntRect::bottom, ClipperLib::PolyTree::Clear(), ClipperLib::ctUnion, DoOffset(), ClipperLib::Clipper::Execute(), FixOrientations(), ClipperLib::ClipperBase::GetBounds(), ClipperLib::IntPoint2d(), ClipperLib::IntRect::left, m_destPolys, ClipperLib::pftNegative, ClipperLib::pftPositive, ClipperLib::ptSubject, ClipperLib::PolyTree::RemoveOutermostPolygon(), ClipperLib::Clipper::ReverseSolution(), ClipperLib::IntRect::right, and ClipperLib::IntRect::top.
Here is the call graph for this function:
|
private |
References ClipperLib::PolyNode::ChildCount(), ClipperLib::PolyNode::Childs, ClipperLib::PolyNode::Contour, ClipperLib::etClosedLine, ClipperLib::etClosedPolygon, ClipperLib::PolyNode::m_endtype, m_lowest, m_polyNodes, and ClipperLib::ReversePath().
Referenced by Execute(), and Execute().
Here is the call graph for this function:
Here is the caller graph for this function:References DoMiter(), DoRound(), DoSquare(), ClipperLib::IntPoint2d(), ClipperLib::jtMiter, ClipperLib::jtRound, ClipperLib::jtSquare, m_delta, m_destPoly, m_miterLim, m_normals, m_sinA, m_srcPoly, and ClipperLib::Round().
Referenced by DoOffset().
Here is the call graph for this function:
Here is the caller graph for this function:| double ClipperLib::ClipperOffset::ArcTolerance |
|
private |
Referenced by DoOffset(), and DoRound().
|
private |
Referenced by DoMiter(), DoOffset(), DoRound(), DoSquare(), and OffsetPoint().
|
private |
Referenced by DoMiter(), DoOffset(), DoRound(), DoSquare(), and OffsetPoint().
|
private |
Referenced by DoOffset(), Execute(), and Execute().
|
private |
Referenced by AddPath(), Clear(), and FixOrientations().
|
private |
Referenced by DoOffset(), and OffsetPoint().
|
private |
Referenced by DoMiter(), DoOffset(), DoRound(), DoSquare(), and OffsetPoint().
|
private |
Referenced by AddPath(), Clear(), DoOffset(), and FixOrientations().
|
private |
Referenced by DoOffset(), and DoRound().
|
private |
Referenced by DoOffset(), DoRound(), DoSquare(), and OffsetPoint().
|
private |
Referenced by DoMiter(), DoOffset(), DoRound(), DoSquare(), and OffsetPoint().
|
private |
Referenced by DoOffset(), and DoRound().
| double ClipperLib::ClipperOffset::MiterLimit |
| double ClipperLib::ClipperOffset::ShortestEdgeLength |