OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
PrincipalComponents2D.cpp File Reference
#include "PrincipalComponents2D.hpp"
#include "Point.hpp"
#include <tuple>
#include <cstdlib>
#include "Polygon.hpp"
#include <cstddef>
#include "libslic3r.h"
#include <cmath>
Include dependency graph for PrincipalComponents2D.cpp:

Go to the source code of this file.

Namespaces

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

Functions

std::tuple< float, Vec2f, Vec2f, float > Slic3r::compute_moments_of_area_of_triangle (const Vec2f &a, const Vec2f &b, const Vec2f &c)
std::tuple< Vec2f, Vec2f > Slic3r::compute_principal_components (const Polygons &polys)