mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0026689: Necessary to improve STEPCAFControl_Reader to read GD&T data from STEP model(AP242).
Small corrections added tests, corrected remarks corrected remarks Fix compilation errors. Update test case (direction can be exist only for Oriented dimension). fix compilation warning
This commit is contained in:
@@ -173,11 +173,11 @@ Standard_Boolean XCAFDimTolObjects_Tool::GetRefDatum(const TopoDS_Shape& theShap
|
||||
myDimTolTool->ShapeTool()->Search(theShape, aShapeL);
|
||||
if(!aShapeL.IsNull())
|
||||
{
|
||||
TDF_Label aDatumL;
|
||||
TDF_LabelSequence aDatumL;
|
||||
if(myDimTolTool->GetRefDatumLabel(aShapeL, aDatumL))
|
||||
{
|
||||
Handle(XCAFDoc_Datum) aDatum;
|
||||
if( aDatumL.FindAttribute(XCAFDoc_Datum::GetID(),aDatum)){
|
||||
if( aDatumL.First().FindAttribute(XCAFDoc_Datum::GetID(),aDatum)){
|
||||
theDatumObject = aDatum->GetObject();
|
||||
return Standard_True;
|
||||
}
|
||||
|
Reference in New Issue
Block a user