Hide menu
Loading...
Searching...
No Matches
cadex::ModelSimplifier_MeshSimplifier Class Reference

Generates a new model with simplified mesh. More...

#include <cadex/ModelSimplifier_MeshSimplifier.hxx>

Public Member Functions

__CADEX_EXPORT ModelSimplifier_MeshSimplifier ()
 
__CADEX_EXPORT ModelData_Model Perform (const ModelData_Model &theSource)
 Performs mesh simplification.
 
__CADEX_EXPORT ModelData_PolyRepresentation Perform (const ModelData_PolyRepresentation &theSource)
 Performs mesh simplification.
 
__CADEX_EXPORT void SetParameters (const ModelSimplifier_MeshSimplifierParameters &theParameters)
 
__CADEX_EXPORT const ModelSimplifier_MeshSimplifierParametersParameters () const
 

Detailed Description

Generates a new model with simplified mesh.

Warning
This class is a part of Model Simplification add-on, which is licensed separately from the base CAD Exchanger SDK.

Provides an API for mesh simplification. If model contains multiple polygonal representations, simplification will be performed for the same representation that is accessed by calling ModelData_Part::PolyRepresentation with ModelData_RepresentationMask::ModelData_RM_Any.

Examples
advgeom/meshsimplify/Program.cs, and advgeom/meshsimplify/main.cxx.

Constructor & Destructor Documentation

◆ ModelSimplifier_MeshSimplifier()

cadex::ModelSimplifier_MeshSimplifier::ModelSimplifier_MeshSimplifier ( )

Constructor.

Exceptions
LicenseManager_LicenseErrorif no Model Simplifier license was activated.

Member Function Documentation

◆ Parameters()

const ModelSimplifier_MeshSimplifierParameters & cadex::ModelSimplifier_MeshSimplifier::Parameters ( ) const

Returns parameters of mesh simplification.

◆ Perform() [1/2]

ModelData_Model cadex::ModelSimplifier_MeshSimplifier::Perform ( const ModelData_Model theSource)

Performs mesh simplification.

Original model will not be changed.

Examples
advgeom/meshsimplify/Program.cs, and advgeom/meshsimplify/main.cxx.

◆ Perform() [2/2]

ModelData_PolyRepresentation cadex::ModelSimplifier_MeshSimplifier::Perform ( const ModelData_PolyRepresentation theSource)

Performs mesh simplification.

Original poly representation will not be changed.

◆ SetParameters()

void cadex::ModelSimplifier_MeshSimplifier::SetParameters ( const ModelSimplifier_MeshSimplifierParameters theParameters)

Sets parameters of mesh simplification.

Examples
advgeom/meshsimplify/Program.cs, and advgeom/meshsimplify/main.cxx.