MeshLib
 
Loading...
Searching...
No Matches
MRFillHoleNicely.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRMeshFwd.h"
4#include "MRMeshFillHole.h"
5#include "MREnums.h"
6
7namespace MR
8{
9
11{
14
16 bool triangulateOnly = false;
17
19 float maxEdgeLen = 0;
20
22 int maxEdgeSplits = 1000;
23
25 float maxAngleChangeAfterFlip = 30 * PI_F / 180.0f;
26
28 bool smoothCurvature = true;
29
32
34 VertUVCoords * uvCoords = {};
35
37 VertColors * colorMap = {};
38};
39
45 EdgeId holeEdge,
46 const FillHoleNicelySettings & settings );
47
48} //namespace MR
int EdgeId
Definition MRDotNet/MRMeshFwd.h:52
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
Definition MRDotNet/MRBitSet.h:39
Definition MRCameraOrientationPlugin.h:7
MRMESH_API FaceBitSet fillHoleNicely(Mesh &mesh, EdgeId holeEdge, const FillHoleNicelySettings &settings)
EdgeWeights
determines the weight of each edge in applications like Laplacian
Definition MREnums.h:8
@ Cotan
edge weight depends on local geometry and uses cotangent values
Definition MRFillHoleNicely.h:11
EdgeWeights edgeWeights
edge weighting scheme for smoothCurvature mode
Definition MRFillHoleNicely.h:31
float maxAngleChangeAfterFlip
Improves local mesh triangulation by doing edge flips if it does not change dihedral angle more than ...
Definition MRFillHoleNicely.h:25
FillHoleParams triangulateParams
how to triangulate the hole, must be specified by the user
Definition MRFillHoleNicely.h:13
bool triangulateOnly
If false then additional vertices are created inside the patch for best mesh quality.
Definition MRFillHoleNicely.h:16
int maxEdgeSplits
Maximum number of edge splits allowed during subdivision.
Definition MRFillHoleNicely.h:22
VertUVCoords * uvCoords
optional uv-coordinates of vertices; if provided then elements corresponding to new vertices will be ...
Definition MRFillHoleNicely.h:34
bool smoothCurvature
Whether to make patch over the hole smooth both inside and on its boundary with existed surface.
Definition MRFillHoleNicely.h:28
float maxEdgeLen
Subdivision is stopped when all edges inside or on the boundary of the region are not longer than thi...
Definition MRFillHoleNicely.h:19
VertColors * colorMap
optional colors of vertices; if provided then elements corresponding to new vertices will be added th...
Definition MRFillHoleNicely.h:37
Parameters structure for MR::fillHole Structure has some options to control MR::fillHole.
Definition MRMesh/MRMesh.h:23