mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-07-25 12:55:50 +03:00
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
38 lines
1.6 KiB
C++
38 lines
1.6 KiB
C++
// Copyright (c) 2020 OPEN CASCADE SAS
|
|
//
|
|
// This file is part of Open CASCADE Technology software library.
|
|
//
|
|
// This library is free software; you can redistribute it and/or modify it under
|
|
// the terms of the GNU Lesser General Public License version 2.1 as published
|
|
// by the Free Software Foundation, with special exception defined in the file
|
|
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
|
// distribution for complete text of the license and disclaimer of any warranty.
|
|
//
|
|
// Alternatively, this file may be used under the terms of Open CASCADE
|
|
// commercial license or contractual agreement.
|
|
|
|
#ifndef _TopToolsFormatVersion_HeaderFile
|
|
#define _TopToolsFormatVersion_HeaderFile
|
|
|
|
//! Defined TopTools format version
|
|
enum TopTools_FormatVersion
|
|
{
|
|
TopTools_FormatVersion_VERSION_1 = 1, //!< Does not write CurveOnSurface UV Points into the file.
|
|
//! On reading calls Check() method.
|
|
//! This is default version.
|
|
TopTools_FormatVersion_VERSION_2 = 2, //!< Stores CurveOnSurface UV Points.
|
|
//! On reading format is recognized from Version string.
|
|
TopTools_FormatVersion_VERSION_3 = 3, //!< Stores per-vertex normal information in case of triangulation-only Faces,
|
|
//! because no analytical geometry to restore normals
|
|
TopTools_FormatVersion_CURRENT = TopTools_FormatVersion_VERSION_3 //!< Current version
|
|
};
|
|
|
|
enum
|
|
{
|
|
TopTools_FormatVersion_LOWER = TopTools_FormatVersion_VERSION_1,
|
|
TopTools_FormatVersion_UPPER = TopTools_FormatVersion_VERSION_3
|
|
};
|
|
|
|
|
|
#endif
|