From: dpasukhi Date: Tue, 16 May 2023 06:43:28 +0000 (+0100) Subject: 0033206: Data Exchange, Step - Supplemental geometry support X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=700ba20c7b7989cb12c555f9c4cc1f34798ed335;p=occt.git 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() --- diff --git a/src/STEPCAFControl/STEPCAFControl_Reader.cxx b/src/STEPCAFControl/STEPCAFControl_Reader.cxx index e9b4975d82..4033c22af1 100644 --- a/src/STEPCAFControl/STEPCAFControl_Reader.cxx +++ b/src/STEPCAFControl/STEPCAFControl_Reader.cxx @@ -3632,7 +3632,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())