OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
SketchInference.cpp File Reference
#include "libslic3r/CAD/SketchInference.hpp"
#include "libslic3r/CAD/SketchEngine.hpp"
#include "libslic3r/Point.hpp"
#include <algorithm>
#include <cmath>
#include <vector>
#include <cstddef>
#include <optional>
#include <math.h>
Include dependency graph for SketchInference.cpp:

Go to the source code of this file.

Classes

struct  Slic3r::anonymous_namespace{SketchInference.cpp}::Cand

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::anonymous_namespace{SketchInference.cpp}

Functions

int Slic3r::anonymous_namespace{SketchInference.cpp}::tier (InferenceSnap::Kind k)
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)
static double Slic3r::unsigned_angle (const Vec2d &a, const Vec2d &b)
std::vector< SketchEntityConstraintDef > Slic3r::infer_relations (const std::vector< SketchEntity > &entities, int new_ei, double ang_tol_rad, double len_tol_frac)

Class Documentation

◆ Slic3r::anonymous_namespace{SketchInference.cpp}::Cand

struct Slic3r::anonymous_namespace{SketchInference.cpp}::Cand
Class Members
double dist {0.0}
int entity {-1}
Kind kind {InferenceSnap::Kind::None}
Vec2d point {0, 0}
SketchPointRole role {SketchPointRole::P0}