MeshFilterParameters Class Reference

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

Types

General 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

Enumerator
MESH_FILTER_LOW 

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

MESH_FILTER_MEDIUM 

Soft decimation and smoothing.

MESH_FILTER_HIGH 

Decimate the number of triangles and apply a soft smooth.

MESH_FILTER_LAST 

Constructor and Destructor

MeshFilterParameters ( MESH_FILTER  mesh_filtering = MESH_FILTER_LOW)
inline

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

Functions

void set ( MESH_FILTER  mesh_filtering = MESH_FILTER_LOW)
inline

Sets the filtering intensity.

Parameters
filtering_: the desired FILTER.
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.
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