0030712: Application Framework - Protect binary TriangulationDriver against empty...
authormsv <msv@opencascade.com>
Wed, 15 May 2019 09:10:36 +0000 (12:10 +0300)
committerbugmaster <bugmaster@opencascade.com>
Wed, 15 May 2019 17:11:51 +0000 (20:11 +0300)
commitb271edb092fffc911bcf626bda65728247764e10
tree664a6e3daf432b66bf50f80a20f4d95147af0333
parentcca36b6b2188e588954ffdbb5a04687af5662f23
0030712: Application Framework - Protect binary TriangulationDriver against empty triangulation in the file

The matter is that when the binary OCAF file contained a triangulation with 0 nodes and 0 triangles the method Paste would cause construction error of Poly_Triangulation.
This patch protects this method against exception.
src/BinMDataXtd/BinMDataXtd_TriangulationDriver.cxx