]> OCCT Git - occt.git/commitdiff
0032784: BinXCAF fails to load documents containing the shapes with scaled/mirrored...
authorDzmitry Razmyslovich <razmyslovich@volumegraphics.com>
Tue, 18 Jan 2022 13:52:39 +0000 (14:52 +0100)
committersmoskvin <smoskvin@opencascade.com>
Wed, 19 Jan 2022 17:01:14 +0000 (20:01 +0300)
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.

src/BinMNaming/BinMNaming_NamedShapeDriver.cxx
tests/bugs/xde/bug32784 [new file with mode: 0644]

index e23187cb4c41cc2aa9b3ee8fcb1a9751d84440b4..1ee3e46d0b92ea1682cfc80554b9a9fae4fc88b8 100644 (file)
@@ -131,7 +131,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 (file)
index 0000000..5ad3ead
--- /dev/null
@@ -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