Files
OrcaSlicer-bambulab/src/libigl/igl/map_vertices_to_circle.h
tamasmeszaros 2ae2672ee9 Building igl statically and moving to the dep scripts
Fixing dep build script on Windows and removing some warnings.

Use bundled igl by default.

Not building with the dependency scripts if not explicitly stated. This way, it will stay in
Fix the libigl patch to include C source files in header only mode.
2019-06-19 14:52:55 +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