|
@@ -5,8 +5,8 @@
|
|
// This Source Code Form is subject to the terms of the Mozilla Public License
|
|
// 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
|
|
// 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/.
|
|
// obtain one at http://mozilla.org/MPL/2.0/.
|
|
-#ifndef IGL_MAPVERTICESTOCIRCLE_H
|
|
|
|
-#define IGL_MAPVERTICESTOCIRCLE_H
|
|
|
|
|
|
+#ifndef IGL_MAP_VERTICES_TO_CIRCLE_H
|
|
|
|
+#define IGL_MAP_VERTICES_TO_CIRCLE_H
|
|
#include <igl/igl_inline.h>
|
|
#include <igl/igl_inline.h>
|
|
|
|
|
|
#include <Eigen/Dense>
|
|
#include <Eigen/Dense>
|
|
@@ -15,18 +15,19 @@
|
|
namespace igl
|
|
namespace igl
|
|
{
|
|
{
|
|
|
|
|
|
- // Map the vertices whose indices are in b on the unit circle.
|
|
|
|
|
|
+ // 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:
|
|
// Inputs:
|
|
// V #V by dim list of mesh vertex positions
|
|
// V #V by dim list of mesh vertex positions
|
|
- // F #V by dim list of mesh faces
|
|
|
|
// b #W list of vertex ids
|
|
// b #W list of vertex ids
|
|
// Outputs:
|
|
// Outputs:
|
|
// UV #W by 2 list of 2D position on the unit circle for the vertices in b
|
|
// UV #W by 2 list of 2D position on the unit circle for the vertices in b
|
|
IGL_INLINE void map_vertices_to_circle(
|
|
IGL_INLINE void map_vertices_to_circle(
|
|
const Eigen::MatrixXd& V,
|
|
const Eigen::MatrixXd& V,
|
|
const Eigen::MatrixXi& F,
|
|
const Eigen::MatrixXi& F,
|
|
- const Eigen::VectorXi& b,
|
|
|
|
|
|
+ const Eigen::VectorXi& bnd,
|
|
Eigen::MatrixXd& UV);
|
|
Eigen::MatrixXd& UV);
|
|
}
|
|
}
|
|
|
|
|