C3D Toolkit  Kernel - 118057, Vision - 2.14.7.1821

Triangulation simplification parameters. More...

#include <op_mesh_parameter.h>

+ Collaboration diagram for MbMeshSimplificationParams:

Public Types

enum class  MbeMeshSimplificationMethod { precise , fast }
 Triangulation simplification method. More...
 

Public Member Functions

 MbMeshSimplificationParams (const c3d::DoubleVector &toleranceLevels, IProgressIndicator *prog=nullptr)
 Constructor for tolerance target.
 
 MbMeshSimplificationParams (const c3d::IndicesVector &triangleCountLevels, IProgressIndicator *prog=nullptr)
 Constructor for triangles count target.
 
 ~MbMeshSimplificationParams ()
 Destructor. More...
 
bool IsTriangleCountTarget () const
 Is target tolerance.
 
bool IsToleranceTarget () const
 Get simplification levels for tolerance.
 
const c3d::DoubleVectorToleranceLevels () const
 Get simplification levels for triangles count.
 
const c3d::IndicesVectorTrianglesCountLevels () const
 Is parameters valid?
 
bool IsValid () const
 Set the simplification method.
 
void SetSimplificationMethod (MbeMeshSimplificationMethod method)
 Get the simplification method.
 
MbeMeshSimplificationMethod GetSimplificationMethod () const
 Set the dihedral angle threshold for collapsing edges (in degrees).
 
void SetDihedralAngleThreshold (double angle)
 Get the dihedral angle threshold for collapsing edges (in degrees).
 
double GetDihedralAngleThreshold () const
 Set the threshold of the angle between adjacent boundary edges (in degrees).
 
void SetAdjacentBoundaryEdgesAngleThreshold (double angle)
 Get the threshold of the angle between adjacent boundary edges (in degrees).
 

Public Attributes

IProgressIndicator_progress
 A progress indicator of the operation.
 

Detailed Description

Triangulation simplification parameters.

Triangulation simplification parameters. Simplification can be carried out until target triangles count reaching or until exceeding of specified tolerance. The dihedral angle threshold can be specified - edges with a bigger angle will be skipped during simplification. The threshold of the angle between adjacent boundary edges can be specified - boundary cracks will be skipped during simplification.

Member Enumeration Documentation

◆ MbeMeshSimplificationMethod

Triangulation simplification method.

Triangulation simplification method. At this moment the user can choose between the more precise version of the algorithm and the faster one.

Warning
Under development.
Enumerator
precise 

More precise.

fast 

Faster.

Constructor & Destructor Documentation

◆ ~MbMeshSimplificationParams()

MbMeshSimplificationParams::~MbMeshSimplificationParams ( )
inline

Destructor.

Is target triangles count.


The documentation for this class was generated from the following file: