MeshFilterParameters Class Reference

Defines the behavior of the sl::Mesh::filter function. More...

Types

enum class  MESH_FILTER
 

Functions

 MeshFilterParameters (MESH_FILTER mesh_filtering=MESH_FILTER::LOW)
 Default constructor, set all parameters to their default and optimized values. More...
 
void set (MESH_FILTER mesh_filtering=MESH_FILTER::LOW)
 Sets the filtering intensity. More...
 
bool save (String filename)
 Saves the current bunch of parameters into a file. More...
 
bool load (String filename)
 Loads the values of the parameters contained in a file. More...
 

Attributes

MESH_FILTER filtering = MESH_FILTER::LOW
 

Detailed Description

Defines the behavior of the sl::Mesh::filter function.

A default constructor is enabled and set to its default parameters.

Enumeration

◆ MESH_FILTER

enum MESH_FILTER
strong
Enumerator
LOW 

Clean the mesh by closing small holes and removing isolated faces.

MEDIUM 

Soft decimation and smoothing.

HIGH 

Decimate the number of triangles and apply a soft smooth.

Constructor and Destructor

◆ MeshFilterParameters()

MeshFilterParameters ( MESH_FILTER  mesh_filtering = MESH_FILTER::LOW)
inline

Default constructor, set all parameters to their default and optimized values.

Functions

◆ set()

void set ( MESH_FILTER  mesh_filtering = MESH_FILTER::LOW)
inline

Sets the filtering intensity.

Parameters
filtering_: the desired FILTER.

◆ save()

bool save ( String  filename)

Saves the current bunch of parameters into a file.

Parameters
filename: the path to the file in which the parameters will be stored.
Returns
true if the file was successfully saved, otherwise false.

◆ load()

bool load ( String  filename)

Loads the values of the parameters contained in a file.

Parameters
filename: the path to the file from which the parameters will be loaded.
Returns
true if the file was successfully loaded, otherwise false.

Variables

◆ filtering