]> OCCT Git - occt.git/commitdiff
0033206: Data Exchange, Step - Supplemental geometry support
authordpasukhi <dpasukhi@opencascade.com>
Tue, 16 May 2023 06:43:28 +0000 (07:43 +0100)
committerdpasukhi <dpasukhi@opencascade.com>
Tue, 16 May 2023 06:43:28 +0000 (07:43 +0100)
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()

src/STEPCAFControl/STEPCAFControl_Reader.cxx

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