MVE - Multi-View Environment mve-devel
Loading...
Searching...
No Matches
mesh_clean.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2015, Simon Fuhrmann
3 * TU Darmstadt - Graphics, Capture and Massively Parallel Computing
4 * All rights reserved.
5 *
6 * This software may be modified and distributed under the terms
7 * of the BSD 3-Clause license. See the LICENSE.txt file for details.
8 */
9
10#ifndef FSSR_MESH_CLEAN_HEADER
11#define FSSR_MESH_CLEAN_HEADER
12
13#include "fssr/defines.h"
14#include "mve/mesh.h"
15
17
22std::size_t
23clean_needles (mve::TriangleMesh::Ptr mesh, float needle_ratio_thres);
24
29std::size_t
31
36std::size_t
37clean_mc_mesh (mve::TriangleMesh::Ptr mesh, float needle_ratio_thres = 0.4f);
38
40
41#endif /* FSSR_MESH_CLEAN_HEADER */
std::shared_ptr< TriangleMesh > Ptr
Definition mesh.h:92
#define FSSR_NAMESPACE_END
Definition defines.h:14
#define FSSR_NAMESPACE_BEGIN
Definition defines.h:13
std::size_t clean_caps(mve::TriangleMesh::Ptr mesh)
Cleans caps from the mesh by removing vertices with only three adjacent triangles.
std::size_t clean_mc_mesh(mve::TriangleMesh::Ptr mesh, float needle_ratio_thres)
Removes degenerated triangles from the mesh typical for Marching Cubes.
std::size_t clean_needles(mve::TriangleMesh::Ptr mesh, float needle_ratio_thres)
Cleans needles from the mesh by collapsing short edges of degenerated triangles.