17 lines
596 B
C++
17 lines
596 B
C++
#pragma once
|
|
#include "vde/mesh/halfedge_mesh.h"
|
|
#include "vde/core/point.h"
|
|
#include <vector>
|
|
|
|
namespace vde::mesh {
|
|
|
|
/// Tutte embedding (harmonic parameterization) for a mesh with fixed boundary
|
|
/// Boundary vertices are mapped to a circle; interior vertices are solved via Laplacian
|
|
/// Returns per-vertex UV coordinates as Point2D
|
|
[[nodiscard]] std::vector<Point2D> tutte_parameterization(const HalfedgeMesh& mesh);
|
|
|
|
/// LSCM (Least Squares Conformal Maps) — simplified version
|
|
[[nodiscard]] std::vector<Point2D> lscm_parameterization(const HalfedgeMesh& mesh);
|
|
|
|
} // namespace vde::mesh
|