Hide menu
cadex::ModelSimplifier_ShapePredicate Class Referenceabstract

Public Member Functions

virtual bool CanSimplifyShape (const ModelData_Shape &theShape)=0
 
virtual bool CanSplitShape (const ModelData_Shape &theShape)=0
 

Detailed Description

Describes an class that implements whether the the shape can be splitted or simplified

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

Member Function Documentation

◆ CanSimplifyShape()

bool cadex::ModelSimplifier_ShapePredicate::CanSimplifyShape ( const ModelData_Shape theShape)
pure virtual

This function specifies what shapes would be simplified.

◆ CanSplitShape()

bool cadex::ModelSimplifier_ShapePredicate::CanSplitShape ( const ModelData_Shape theShape)
pure virtual

This function specifies what shapes can be split during simplification. Simplification algorithms can process shapes either treating them as a single unit, or as a collection of units. If this function returns false, the body will be treated as a single unit; for example, it'll be removed either completely or not at all. If it returns true, the body can be split and its portions will be considered for simplification separately.