2026-07-23 05:27:51 +00:00
|
|
|
#pragma once
|
|
|
|
|
#include "vde/mesh/halfedge_mesh.h"
|
|
|
|
|
#include <cmath>
|
|
|
|
|
|
|
|
|
|
namespace vde::mesh {
|
2026-07-23 08:19:24 +00:00
|
|
|
using core::Point2D;
|
|
|
|
|
using core::Point3D;
|
|
|
|
|
using core::Vector3D;
|
2026-07-23 05:27:51 +00:00
|
|
|
|
|
|
|
|
struct MeshQuality {
|
|
|
|
|
double min_angle_deg = 0;
|
|
|
|
|
double max_angle_deg = 0;
|
|
|
|
|
double avg_aspect_ratio = 0;
|
|
|
|
|
double max_aspect_ratio = 0;
|
|
|
|
|
size_t degenerate_faces = 0;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
MeshQuality evaluate_mesh_quality(const HalfedgeMesh& mesh);
|
|
|
|
|
|
|
|
|
|
} // namespace vde::mesh
|