0030356: Data Exchange - IGES model after importing into document has location issues

This commit is contained in:
pdn
2019-02-27 17:02:37 +03:00
committed by apn
parent 0493ffd083
commit 4ec8ee66a0
5 changed files with 23 additions and 10 deletions

View File

@@ -127,12 +127,14 @@ static void AddCompositeShape (const Handle(XCAFDoc_ShapeTool)& theSTool,
if( nbSimple && aHasCompositeSubShape)
{
theSTool->AddShape( aSimpleShape, Standard_False, Standard_False );
TopoDS_Compound aNewShape;
aB.MakeCompound(aNewShape);
aB.Add(aNewShape, aSimpleShape);
aB.Add(aNewShape,aCompShape);
//if (!aLoc.IsIdentity())
// aNewShape.Location(aLoc );
if (!aLoc.IsIdentity())
aNewShape.Location(aLoc );
aNewShape.Orientation(theShape.Orientation());
theSTool->AddShape( aNewShape, aHasCompositeSubShape, Standard_False );
}