12#ifndef EASY3D_ALGO_SURFACE_MESH_TRIANGULATION_H
13#define EASY3D_ALGO_SURFACE_MESH_TRIANGULATION_H
16#include <easy3d/core/surface_mesh.h>
49 float compute_weight(
int i,
int j,
int k)
const;
55 bool insert_edge(
int i,
int j);
63 std::vector<SurfaceMesh::Halfedge> halfedges_;
64 std::vector<SurfaceMesh::Vertex> vertices_;
67 std::vector<std::vector<float> > weight_;
68 std::vector<std::vector<int> > index_;
Definition: surface_mesh.h:185
A halfedge data structure for polygonal meshes of 2-manifold.
Definition: surface_mesh.h:52
Triangulate a polygonal mesh into a pure triangle mesh.
Definition: surface_mesh_triangulation.h:31
void triangulate(Objective obj=MIN_AREA)
triangulate all faces
Definition: surface_mesh_triangulation.cpp:25
Objective
triangulation objective: find the triangulation that minimizes the sum of squared triangle areas,...
Definition: surface_mesh_triangulation.h:38
Definition: collider.cpp:182
Definition: surface_mesh.h:134
Definition: surface_mesh.h:104