0031136: Modeling Data - BinXCAF persistence loses normals from triangulation-only...
authorasuraven <asuraven@opencascade.com>
Tue, 17 Nov 2020 17:37:01 +0000 (20:37 +0300)
committerbugmaster <bugmaster@opencascade.com>
Wed, 20 Jan 2021 18:20:43 +0000 (21:20 +0300)
commit9f45d35b6b655d056c908d627b0b86cc04ad4cb3
tree61021ac413acf2bc5d082b22c0049b41836af43a
parent6fab0b34288ef3f29ecf4eabc0283540460dbc31
0031136: Modeling Data - BinXCAF persistence loses normals from triangulation-only Faces

Information about normals are stored in BinOCAF, XmlOCAF, BRep and BBRep (in case of triangulation-only Faces).
Versions of formats have been changed (11 for TDocStd, 4 for BRep Shape and 3 for Binary BRep Shape)
theWithNormals parameter added to BRepTools::Write()
IsWithNormals()/SetWithNormals() function added to BRepTools_ShapeSet
-normals/-noNormals option added to StoreTriangulation DRAW command
-normals/-noNormals option added to writebrep DRAW command
Tests for writing to brep/binary brep/BinXCaf/XmlXCaf added
Test for StoreTriangulation options -normals/-noNormals added
40 files changed:
dox/specification/brep_format.md
dox/upgrade/upgrade.md
src/BRepTools/BRepTools.cxx
src/BRepTools/BRepTools.hxx
src/BRepTools/BRepTools_ShapeSet.cxx
src/BRepTools/BRepTools_ShapeSet.hxx
src/BinDrivers/BinDrivers_DocumentStorageDriver.cxx
src/BinDrivers/BinDrivers_DocumentStorageDriver.hxx
src/BinLDrivers/BinLDrivers_DocumentRetrievalDriver.cxx
src/BinLDrivers/BinLDrivers_DocumentSection.cxx
src/BinLDrivers/BinLDrivers_DocumentSection.hxx
src/BinLDrivers/BinLDrivers_DocumentStorageDriver.cxx
src/BinLDrivers/BinLDrivers_DocumentStorageDriver.hxx
src/BinMNaming/BinMNaming_NamedShapeDriver.cxx
src/BinMNaming/BinMNaming_NamedShapeDriver.hxx
src/BinMNaming/BinMNaming_NamedShapeDriver.lxx
src/BinTools/BinTools.cxx
src/BinTools/BinTools.hxx
src/BinTools/BinTools_FormatVersion.hxx
src/BinTools/BinTools_ShapeSet.cxx
src/BinTools/BinTools_ShapeSet.hxx
src/DBRep/DBRep.cxx
src/DDocStd/DDocStd_DocumentCommands.cxx
src/Poly/Poly_Triangulation.cxx
src/Poly/Poly_Triangulation.hxx
src/TDocStd/TDocStd_FormatVersion.hxx
src/TopTools/TopTools_FormatVersion.hxx
src/TopTools/TopTools_ShapeSet.cxx
src/TopTools/TopTools_ShapeSet.hxx
src/XmlDrivers/XmlDrivers_DocumentStorageDriver.cxx
src/XmlDrivers/XmlDrivers_DocumentStorageDriver.hxx
src/XmlLDrivers/XmlLDrivers_DocumentStorageDriver.cxx
src/XmlLDrivers/XmlLDrivers_DocumentStorageDriver.hxx
src/XmlMNaming/XmlMNaming_NamedShapeDriver.cxx
src/XmlMNaming/XmlMNaming_NamedShapeDriver.hxx
tests/bugs/moddata_3/bug31136_1 [new file with mode: 0644]
tests/bugs/moddata_3/bug31136_2 [new file with mode: 0644]
tests/bugs/moddata_3/bug31136_3 [new file with mode: 0644]
tests/bugs/moddata_3/bug31136_4 [new file with mode: 0644]
tests/bugs/moddata_3/bug31136_5 [new file with mode: 0644]