OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
SketchInference.hpp File Reference
#include "libslic3r/Point.hpp"
#include "libslic3r/CAD/SketchEngine.hpp"
#include <math.h>
#include <vector>
#include <optional>
#include <cmath>
Include dependency graph for SketchInference.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Slic3r::InferenceSnap

Namespaces

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

Functions

InferenceSnap Slic3r::infer_point_snap (const std::vector< SketchEntity > &entities, const Vec2d &query, double tol, bool include_origin)
std::optional< SketchConstraintType > Slic3r::infer_axis_constraint (const Vec2d &anchor, const Vec2d &tip, double ang_tol_rad)
std::vector< SketchEntityConstraintDef > Slic3r::infer_relations (const std::vector< SketchEntity > &entities, int new_ei, double ang_tol_rad, double len_tol_frac)

Variables

constexpr double Slic3r::kSketchInferAngleTol = 3.0 * M_PI / 180.0