mirror of
https://github.com/QIDITECH/QIDISlicer.git
synced 2026-02-06 10:51:52 +03:00
update bundled_deps
This commit is contained in:
38
bundled_deps/libigl/igl/map_vertices_to_circle.h
Normal file
38
bundled_deps/libigl/igl/map_vertices_to_circle.h
Normal file
@@ -0,0 +1,38 @@
|
||||
// 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
|
||||
Reference in New Issue
Block a user