12#ifndef EASY3D_ALGO_SURFACE_MESH_TRIANGULATION_H
13#define EASY3D_ALGO_SURFACE_MESH_TRIANGULATION_H
16#include <easy3d/core/surface_mesh.h>
66 float compute_weight(
int i,
int j,
int k)
const;
82 bool insert_edge(
int i,
int j);
89 SurfaceMesh::VertexProperty <vec3> points_;
90 std::vector<SurfaceMesh::Halfedge> halfedges_;
91 std::vector<SurfaceMesh::Vertex> vertices_;
94 std::vector<std::vector<float> > weight_;
95 std::vector<std::vector<int> > index_;
A halfedge data structure for polygonal meshes of 2-manifold.
Definition surface_mesh.h:51
SurfaceMeshTriangulation(SurfaceMesh *mesh)
Construct with the surface mesh to be triangulated.
Definition surface_mesh_triangulation.cpp:17
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:43
Definition collider.cpp:182
Definition surface_mesh.h:191
This type represents a vertex (internally it is basically an index).
Definition surface_mesh.h:135