Provides an interface to run several analyzer tools. More...
Public Member Functions | |
SheetMetal_Analyzer () | |
Constructor. Creates a machining analyzer with zero tools. | |
SheetMetal_Data | Perform (const ModelData::Solid &theSolid, const cadex::ProgressStatus &theProgressStatus=cadex::ProgressStatus()) |
Runs analyzing process. | |
SheetMetal_Data | Perform (const ModelData::Solid &theSolid, double theThickness, const cadex::ProgressStatus &theProgressStatus=cadex::ProgressStatus()) |
Runs analyzing process. | |
SheetMetal_Data | Perform (const ModelData::Shell &theShell, const cadex::ProgressStatus &theProgressStatus=cadex::ProgressStatus()) |
Runs analyzing process. | |
void | Perform (SheetMetal_Data &theData, const cadex::ProgressStatus &theProgressStatus=cadex::ProgressStatus()) |
Runs analyzing process. Updates existing sheet metal data. Nothing happens if data is empty. | |
void | AddTool (const SheetMetal_AnalyzerTool &theTool) |
Adds additional tool to run during analyzing process. | |
Provides an interface to run several analyzer tools.
Running analyzer with zero tools added will start the shape analysis process that fill SheetMetal_Data with minimum information needed to run SheetMetal_Unfolder and SheetMetal_FeatureRecognizer with it.
SheetMetal_Unfolder and SheetMetal_FeatureRecognizer tools use same shape analysis process underhood if you pass ModelData::Shell or ModelData::Solid; they can also work with already analyzed models represented as SheetMetal_Data. Thus, if you want to use both SheetMetal_FeatureRecognizer and SheetMetal_Unfolder simultaneously, it's possible to reduce the time of analysis by using SheetMetal_Analyzer (in this case the model will be analyzed once). The resulting SheetMetal_Data could be passed into tools.
If the model is not sheet metal model than the empty SheetMetal_Data is returned. The model may be represent as a ModelData::Shell or a ModelData::Solid.
![]()
Shell shape | ![]()
Solid shape |
cadex::SheetMetal_Analyzer::SheetMetal_Analyzer | ( | ) |
Constructor. Creates a machining analyzer with zero tools.
Exceptions
LicenseManager_LicenseError if no Sheet metal license was activated.
void cadex::SheetMetal_Analyzer::AddTool | ( | const SheetMetal_AnalyzerTool & | theTool | ) |
Adds additional tool to run during analyzing process.
Adding several tools with same type increase the analyzing time but won't provide additional opportunity.
void cadex::SheetMetal_Analyzer::Perform | ( | SheetMetal_Data & | theData, |
const cadex::ProgressStatus & | theProgressStatus = cadex::ProgressStatus() ) |
Runs analyzing process. Updates existing sheet metal data. Nothing happens if data is empty.