1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00

0028332: Unstable tests in group gdt export

Add initialization of variable GDTMode in STEP writer.
This commit is contained in:
ika 2017-08-21 15:22:39 +03:00 committed by bugmaster
parent 6ca8b6144b
commit 5b83cdb642
2 changed files with 12 additions and 10 deletions

View File

@ -275,7 +275,7 @@ STEPCAFControl_Writer::STEPCAFControl_Writer () :
myLayerMode( Standard_True ),
myPropsMode( Standard_True ),
mySHUOMode ( Standard_True ),
myDGTMode ( Standard_True ),
myGDTMode ( Standard_True ),
myMatMode ( Standard_True )
{
STEPCAFControl_Controller::Init();
@ -290,15 +290,17 @@ STEPCAFControl_Writer::STEPCAFControl_Writer () :
//=======================================================================
STEPCAFControl_Writer::STEPCAFControl_Writer (const Handle(XSControl_WorkSession)& WS,
const Standard_Boolean scratch)
const Standard_Boolean scratch) :
myColorMode(Standard_True),
myNameMode(Standard_True),
myLayerMode(Standard_True),
myPropsMode(Standard_True),
mySHUOMode(Standard_True),
myGDTMode(Standard_True),
myMatMode(Standard_True)
{
STEPCAFControl_Controller::Init();
Init ( WS, scratch );
myColorMode = Standard_True;
myNameMode = Standard_True;
myLayerMode = Standard_True;
myPropsMode = Standard_True;
mySHUOMode = Standard_True;
}
@ -4269,7 +4271,7 @@ Standard_Boolean STEPCAFControl_Writer::GetSHUOMode () const
void STEPCAFControl_Writer::SetDimTolMode(const Standard_Boolean dimtolmode)
{
myDGTMode = dimtolmode;
myGDTMode = dimtolmode;
}
@ -4280,7 +4282,7 @@ void STEPCAFControl_Writer::SetDimTolMode(const Standard_Boolean dimtolmode)
Standard_Boolean STEPCAFControl_Writer::GetDimTolMode() const
{
return myDGTMode;
return myGDTMode;
}

View File

@ -231,7 +231,7 @@ private:
Standard_Boolean myPropsMode;
Standard_Boolean mySHUOMode;
MoniTool_DataMapOfShapeTransient myMapCompMDGPR;
Standard_Boolean myDGTMode;
Standard_Boolean myGDTMode;
Standard_Boolean myMatMode;
NCollection_Vector<Handle(StepRepr_RepresentationItem)> myGDTAnnotations;
Handle(StepVisual_DraughtingModel) myGDTPresentationDM;