#include <cadex/ModelSimplifier_MeshSimplifierParameters.hxx>
Public Types | |
enum | DegreeOfSimplificationType { Low , Medium , High } |
Public Member Functions | |
ModelSimplifier_MeshSimplifierParameters () | |
Constructor. | |
DegreeOfSimplificationType | DegreeOfSimplification () const |
Returns the desired level of simplification. | |
void | SetDegreeOfSimplification (DegreeOfSimplificationType theValue) |
Sets the desired level of simplification. | |
double | MaxDeviation () const |
void | SetMaxDeviation (double theValue) |
Sets maximum deviation of simplified model from original model in mm. | |
bool | ForceSimplification () const |
void | SetForceSimplification (bool theValue) |
Enables forced simplification. | |
internal::ModelSimplifierImpl_MeshSimplifierParameters * | Impl () |
Defines parameters used by ModelSimplifier_MeshSimplifier.
cadex::ModelSimplifier_MeshSimplifierParameters::ModelSimplifier_MeshSimplifierParameters | ( | ) |
Constructor.
Sets default parameter values.
bool cadex::ModelSimplifier_MeshSimplifierParameters::ForceSimplification | ( | ) | const |
Returns whether forced simplification is enabled.
double cadex::ModelSimplifier_MeshSimplifierParameters::MaxDeviation | ( | ) | const |
Returns maximum deviation.
void cadex::ModelSimplifier_MeshSimplifierParameters::SetDegreeOfSimplification | ( | DegreeOfSimplificationType | theValue | ) |
Sets the desired level of simplification.
ModelSimplifier_MeshSimplifierParameters::Low means that fewer triangles are removed; ModelSimplifier_MeshSimplifierParameters::High means that more triangles are removed.
This parameter isn't taken into account if maximum deviation value is set.
void cadex::ModelSimplifier_MeshSimplifierParameters::SetForceSimplification | ( | bool | theValue | ) |
Enables forced simplification.
For some models enabling this setting can result in lower triangle count with the same parameters.
Default value is false.
void cadex::ModelSimplifier_MeshSimplifierParameters::SetMaxDeviation | ( | double | theValue | ) |
Sets maximum deviation of simplified model from original model in mm.
Mesh Simplifier tries to reduce the triangle count as much as possible with specified deviation. The output model's mesh will not be further from the original model than this value.
Setting this parameter overrides previously specified degree of simplification preset.