27#ifndef EASY3D_ALGO_SURFACE_MESH_STITCHING_H
28#define EASY3D_ALGO_SURFACE_MESH_STITCHING_H
32#include <easy3d/core/surface_mesh.h>
60 void apply(
float dist_threshold = 1e-6);
70 void borders_in_range(
72 std::vector<SurfaceMesh::Halfedge> &neighbors
79 bool lexicographically_smaller(
const vec3 &p0,
const vec3 &p1)
const;
86 std::vector<SurfaceMesh::Halfedge> border_edges_;
93 int k_for_radius_search_;
A halfedge data structure for polygonal meshes of 2-manifold.
Definition surface_mesh.h:51
SurfaceMeshStitching(SurfaceMesh *mesh)
Construct with mesh to be stitched.
Definition surface_mesh_stitching.cpp:44
virtual ~SurfaceMeshStitching()
Destructor.
Definition surface_mesh_stitching.cpp:62
void apply(float dist_threshold=1e-6)
Apply stitching to the surface mesh.
Definition surface_mesh_stitching.cpp:169
Definition collider.cpp:182
Vec< 3, float > vec3
A 3D point/vector of float type.
Definition types.h:44
This type represents a halfedge (internally it is basically an index).
Definition surface_mesh.h:155