1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0033206: Data Exchange, Step - Supplemental geometry support

Update initial visible status of SupplementalGeometry to visible.
To update this value on API side after, you need to found a free label
  contains attribute "XCAFDoc::SupplementalContainerGUID()" and set invisible attribute
  XCAFDoc::InvisibleGUID()
This commit is contained in:
dpasukhi
2023-05-16 07:43:28 +01:00
committed by ika
parent f67b0c9fec
commit 700ba20c7b

View File

@@ -3632,7 +3632,6 @@ Standard_Boolean STEPCAFControl_Reader::findReferenceGeometry(const Handle(Stand
mySupplementalLabel = theShTool->NewShape(); mySupplementalLabel = theShTool->NewShape();
TDataStd_Name::Set(mySupplementalLabel, "Supplemental Geometry"); TDataStd_Name::Set(mySupplementalLabel, "Supplemental Geometry");
TDataStd_UAttribute::Set(mySupplementalLabel, XCAFDoc::SupplementalContainerGUID()); TDataStd_UAttribute::Set(mySupplementalLabel, XCAFDoc::SupplementalContainerGUID());
TDataStd_UAttribute::Set(mySupplementalLabel, XCAFDoc::InvisibleGUID());
} }
TDF_Label aSupGeomLabel = theShTool->AddComponent(mySupplementalLabel, aSh); TDF_Label aSupGeomLabel = theShTool->AddComponent(mySupplementalLabel, aSh);
if (aSupGeomLabel.IsNull()) if (aSupGeomLabel.IsNull())