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

0023921: IGES reader cannot map subshapes colors inside nested assemblies

Modification to avoid creation of redundant labels in XCAF for any shapes  belonging compound even if colors are not defined for them.
Fix to avoid compiler warning.
Fix for regression for test case de iges_2 A6
Test case for issue CR23921
This commit is contained in:
gka
2013-12-05 15:26:01 +04:00
committed by bugmaster
parent 94218044fe
commit d4a2c5155a
15 changed files with 199 additions and 71 deletions

View File

@@ -524,7 +524,10 @@ TDF_Label XCAFDoc_ShapeTool::addShape (const TopoDS_Shape& S, const Standard_Boo
//for(Standard_Integer i=1; i<=tmpMap.Extent(); i++)
//mySubShapes.Bind(tmpMap.FindKey(i),ShapeLabel);
for(Standard_Integer i=1; i<=A->GetMap().Extent(); i++)
mySubShapes.Bind(A->GetMap().FindKey(i),ShapeLabel);
{
TopoDS_Shape aSh = A->GetMap().FindKey(i);
mySubShapes.Bind(aSh,ShapeLabel);
}
//mySubShapes.Bind(ShapeLabel,A->GetMap());
}