64ad721ed7
- CMake: INTERFACE 库修复、vde_compile_options 顺序修复 - 命名空间: 所有模块添加 using 声明 - 类型补全: Ray3Dd、Point4D - 头文件: tolerance 泛型化、std::optional include - 警告: 放宽 -Wconversion/-Wsign-conversion - 构建结果: 0 errors, 22/25 tests passed
20 lines
660 B
C++
20 lines
660 B
C++
#pragma once
|
|
#include "vde/mesh/halfedge_mesh.h"
|
|
#include "vde/core/point.h"
|
|
#include <vector>
|
|
|
|
namespace vde::mesh {
|
|
using core::Point2D;
|
|
using core::Point3D;
|
|
using core::Vector3D;
|
|
|
|
/// 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
|