mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0031946: Modeling Data - replace version numbers with enumerations in TopTools and BinTools
Added enumerations BinTools_FormatVersion & TopTools_FormatVersion for more clear version tracking in the code. Added new BinTools::Write() & BRepTools::Write() overloaded functions with version & isWithTriangles parameters. Added new "readbrep"/"writebrep" DRAW commands handling reading and writing of both Binary and ASCII .brep formats and providing arguments to setup writing of triangulation data and of format version. "binrestore" is made an alias to new command "readbrep". "binsave" now is an alias to new "writebrep" saving into binary format by default ("writebrep" writes into ASCII format by default).
This commit is contained in:
@@ -34,7 +34,6 @@
|
||||
IMPLEMENT_STANDARD_RTTIEXT(BinMNaming_NamedShapeDriver,BinMDF_ADriver)
|
||||
|
||||
#define SHAPESET "SHAPE_SECTION"
|
||||
#define FORMAT_NUMBER 3
|
||||
//=======================================================================
|
||||
static Standard_Character EvolutionToChar(const TNaming_Evolution theEvol)
|
||||
{
|
||||
@@ -142,7 +141,9 @@ static int TranslateFrom (const BinObjMgt_Persistent& theSource,
|
||||
|
||||
BinMNaming_NamedShapeDriver::BinMNaming_NamedShapeDriver
|
||||
(const Handle(Message_Messenger)& theMsgDriver)
|
||||
: BinMDF_ADriver (theMsgDriver, STANDARD_TYPE(TNaming_NamedShape)->Name()), myShapeSet(Standard_False),myFormatNb(FORMAT_NUMBER)
|
||||
: BinMDF_ADriver (theMsgDriver, STANDARD_TYPE(TNaming_NamedShape)->Name()),
|
||||
myShapeSet (Standard_False),
|
||||
myFormatNb (BinTools_FormatVersion_VERSION_3)
|
||||
{
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user