OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
ClipperZUtils.hpp File Reference
#include "libslic3r.h"
#include <cstddef>
#include <algorithm>
#include <cassert>
#include <functional>
#include <numeric>
#include <utility>
#include <vector>
#include <libslic3r/ClipperUtils.hpp>
#include <libslic3r/Point.hpp>
#include <libslic3r/ExPolygon.hpp>
#include "Polygon.hpp"
Include dependency graph for ClipperZUtils.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Slic3r::ClipperZUtils::ClipperZIntersectionVisitor

Namespaces

namespace  Slic3r
 |/ Copyright (c) Prusa Research 2020 - 2023 Enrico Turri @enricoturri1966 |/ |/ PrusaSlicer is released under the terms of the AGPLv3 or higher |/
namespace  Slic3r::ClipperZUtils

Typedefs

using Slic3r::ClipperZUtils::ZPoint = Vec3crd
using Slic3r::ClipperZUtils::ZPoints = std::vector<ZPoint, PointsAllocator<ZPoint>>
using Slic3r::ClipperZUtils::ZPath = ZPoints
using Slic3r::ClipperZUtils::ZPaths = std::vector<ZPath, PointsAllocator<ZPath>>
using Slic3r::ClipperZUtils::ZFillCallback = std::function<void(const ZPoint &e1bot, const ZPoint &e1top, const ZPoint &e2bot, const ZPoint &e2top, ZPoint &pt)>

Functions

bool Slic3r::ClipperZUtils::zpoint_lower (const ZPoint &l, const ZPoint &r)
template<bool Open = false>
ZPath Slic3r::ClipperZUtils::to_zpath (const Points &path, coord_t z)
template<bool Open = false>
ZPaths Slic3r::ClipperZUtils::to_zpaths (const VecOfPoints &paths, coord_t z)
template<bool Open = false>
ZPaths Slic3r::ClipperZUtils::expolygons_to_zpaths (const ExPolygons &src, coord_t &base_idx)
template<bool Open = false>
Points Slic3r::ClipperZUtils::from_zpath (const ZPoints &path)
template<bool Open = false>
void Slic3r::ClipperZUtils::from_zpaths (const ZPaths &paths, VecOfPoints &out)
template<bool Open = false>
VecOfPoints Slic3r::ClipperZUtils::from_zpaths (const ZPaths &paths)
double Slic3r::ClipperZUtils::area (const ZPath &path)
ZPaths Slic3r::ClipperZUtils::clip_zpaths (ClipType clip_type, const ZPaths &subject, bool subject_open, const ZPaths &clip, const ZFillCallback &zfill, bool preserve_collinear)