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=cefc95b3c23f9d53d44e6a90e61590ac725ee46d;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 614422b07b..ba4ed3f5a1 100644 --- a/src/STEPCAFControl/STEPCAFControl_Reader.cxx +++ b/src/STEPCAFControl/STEPCAFControl_Reader.cxx @@ -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())