Easy3D 2.6.1
Loading...
Searching...
No Matches
SurfaceMeshHoleFilling Class Reference

This class closes simple holes in a surface mesh. More...

#include <easy3d/algo/surface_mesh_hole_filling.h>

Public Member Functions

 SurfaceMeshHoleFilling (SurfaceMesh *mesh)
 Construct with mesh.
 
bool fill_hole (SurfaceMesh::Halfedge h)
 Fill the hole specified by halfedge h.
 
int fill_holes (int size=500)
 Fill all holes with size smaller than the specified size.
 

Detailed Description

This class closes simple holes in a surface mesh.

It closes simple holes (boundary loops of manifold vertices) by first filling the hole with an angle/area-minimizing triangulation, followed by isometric remeshing, and finished by curvature-minimizing fairing of the filled-in patch. See the following paper for more details:

  • Peter Liepa. Filling holes in meshes. SGP, pages 200–205, 2003.

Constructor & Destructor Documentation

◆ SurfaceMeshHoleFilling()

SurfaceMeshHoleFilling ( SurfaceMesh * mesh)
explicit

Construct with mesh.

Parameters
meshThe surface mesh to be processed.

Member Function Documentation

◆ fill_hole()

bool fill_hole ( SurfaceMesh::Halfedge h)

Fill the hole specified by halfedge h.

Parameters
hThe halfedge handle specifying the hole to be filled.
Returns
True if the hole was successfully filled, false otherwise.

◆ fill_holes()

int fill_holes ( int size = 500)

Fill all holes with size smaller than the specified size.

The size of a hole is defined as the number of boundary edges in the boundary loop of the hole.

Parameters
sizeThe maximum size of holes to be filled. Default: 500.
Returns
The number of holes filled.

The documentation for this class was generated from the following files: