PrusaSlicer/bundled_deps/libigl/igl/map_vertices_to_circle.h
Martin Šach 21116995d7 Refactor CMake and improve #includes.
* 1. Remove all global include_directories.
* 2. Move 3d party dependencies from src to budled deps if possible.
* Unify and enforce one way of including headers:
    e.g. #include "libslic3r/GCode.hpp" vs #include "GCode.hpp"
    (always use the "libslic3r/GCode.hpp" option).
* Make all dependencies (also header only) a cmake target.
2024-07-08 15:36:46 +02:00

39 lines
1.1 KiB
C++
Executable File

// This file is part of libigl, a simple c++ geometry processing library.
//
// Copyright (C) 2014 Stefan Brugger <stefanbrugger@gmail.com>
//
// This Source Code Form is subject to the terms of the Mozilla Public License
// v. 2.0. If a copy of the MPL was not distributed with this file, You can
// obtain one at http://mozilla.org/MPL/2.0/.
#ifndef IGL_MAP_VERTICES_TO_CIRCLE_H
#define IGL_MAP_VERTICES_TO_CIRCLE_H
#include "igl_inline.h"
#include "PI.h"
#include <Eigen/Dense>
#include <vector>
namespace igl
{
// Map the vertices whose indices are in a given boundary loop (bnd) on the
// unit circle with spacing proportional to the original boundary edge
// lengths.
//
// Inputs:
// V #V by dim list of mesh vertex positions
// b #W list of vertex ids
// Outputs:
// UV #W by 2 list of 2D position on the unit circle for the vertices in b
IGL_INLINE void map_vertices_to_circle(
const Eigen::MatrixXd& V,
const Eigen::VectorXi& bnd,
Eigen::MatrixXd& UV);
}
#ifndef IGL_STATIC_LIBRARY
# include "map_vertices_to_circle.cpp"
#endif
#endif