-
Notifications
You must be signed in to change notification settings - Fork 365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data Exchange - Update Readers with ShapeHealing parameters #247
base: IR
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ | |
//abv 10.04.99 S4136: eliminate using BRepAPI::Precision() | ||
|
||
#include <BRepLib.hxx> | ||
#include <DE_ShapeFixParameters.hxx> | ||
#include <IFSelect_CheckCounter.hxx> | ||
#include <IFSelect_Functions.hxx> | ||
#include <IGESControl_Controller.hxx> | ||
|
@@ -35,6 +36,7 @@ | |
#include <Transfer_Binder.hxx> | ||
#include <Transfer_IteratorOfProcessForTransient.hxx> | ||
#include <Transfer_TransientProcess.hxx> | ||
#include <XSAlgo_ShapeProcessor.hxx> | ||
#include <XSControl_Controller.hxx> | ||
#include <XSControl_TransferReader.hxx> | ||
#include <XSControl_WorkSession.hxx> | ||
|
@@ -312,3 +314,21 @@ void IGESControl_Reader::PrintTransferInfo | |
} | ||
} | ||
} | ||
|
||
//============================================================================= | ||
|
||
IGESToBRep_Actor::ParameterMap IGESControl_Reader::GetDefaultParams() | ||
{ | ||
static ParameterMap aParams; | ||
if (aParams.empty()) | ||
{ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The method is not thread safety. rely on static initialization (making some special class-holder that have some constructor) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Additionally looks so close to IGESControl_ActorWrite. |
||
DE_ShapeFixParameters aShapeFixParameters; | ||
aShapeFixParameters.DetalizationLevel = TopAbs_EDGE; | ||
aShapeFixParameters.CreateOpenSolidMode = DE_ShapeFixParameters::FixMode::Fix; | ||
aShapeFixParameters.FixTailMode = DE_ShapeFixParameters::FixMode::FixOrNot; | ||
aShapeFixParameters.MaxTailAngle = DE_ShapeFixParameters::FixMode::FixOrNot; | ||
aShapeFixParameters.MaxTailWidth = DE_ShapeFixParameters::FixMode::FixOrNot; | ||
XSAlgo_ShapeProcessor::FillParameterMap(aShapeFixParameters, false, aParams); | ||
} | ||
return aParams; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The method is not thread safety.
There 2 options: