From: Dzmitry Razmyslovich Date: Tue, 18 Jan 2022 13:52:39 +0000 (+0100) Subject: 0032784: BinXCAF fails to load documents containing the shapes with scaled/mirrored... X-Git-Tag: V7_6_1~5 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=336e2cdeda6cceddc88c60ca275622d09a2a367a;p=occt.git 0032784: BinXCAF fails to load documents containing the shapes with scaled/mirrored location A flag not to raise an exception is used on reading of an XCAF document. If such a shape with scaling transformation is stored in the document, it should be read. --- diff --git a/src/BinMNaming/BinMNaming_NamedShapeDriver.cxx b/src/BinMNaming/BinMNaming_NamedShapeDriver.cxx index 2d08ecff90..58ca775a5c 100644 --- a/src/BinMNaming/BinMNaming_NamedShapeDriver.cxx +++ b/src/BinMNaming/BinMNaming_NamedShapeDriver.cxx @@ -132,7 +132,7 @@ static int TranslateFrom (const BinObjMgt_Persistent& theSource, TopAbs_Orientation anOrient = CharToOrientation (aCharOrient); theResult.TShape (theShapeSet->Shape (aShapeID).TShape());//TShape - theResult.Location (theShapeSet->Locations().Location (aLocID)); //Location + theResult.Location (theShapeSet->Locations().Location (aLocID), Standard_False); //Location theResult.Orientation (anOrient);//Orientation return 0; } diff --git a/tests/bugs/xde/bug32784 b/tests/bugs/xde/bug32784 new file mode 100644 index 0000000000..5ad3ead49f --- /dev/null +++ b/tests/bugs/xde/bug32784 @@ -0,0 +1,6 @@ +puts "===========" +puts "0032784: BinXCAF fails to load documents containing the shapes with scaled/mirrored location" +puts "===========" + +if [info exists D] {catch {Close D}} +XOpen [locate_data_file bug32784_mirrored.xbf] D