DiscussionsIssue archiveOCCT:Modeling Data

Archived issue #0025439

Enabling shape binary persistence without OCAF

CommunityOCCT:Modeling Dataclosed6 public notes

Search issues

Description

The fix moves BinTools to TKBRep from TKBin.

In itself, BinTools provides binary persistence of topology and geometry, and is similar to BRepTools which provides textual persistence.
Although currently it is only used in OCAF binary persistence, binary shape persistence can be useful for OCAF-less user applications.

The increased file size of TKBRep should be negligible, approximately ~100KB in release mode.

From architectural standpoint BRepTools and BinTools would deserve a refactoring and having a common writer and two different formatters (text and binary), thus following the Builder pattern. Same for reader & parsers. This could reduce code duplication and size. But this is beyond this simple integration request just to put BinTools to TKBRep.

Additional information

As no documentation or DRAW commands have been explicitly used for binary persistence of shapes, they are not affected within the scope of this change request. This can be done later if needed.

Public activity

6 archived notes

Participants are labeled by their role within this record.

01Commenter 2
Branch [archived branch] has been created by Author.

[revision removed]


Detailed log of new commits:

Author: Author
Date: Fri Oct 31 16:40:03 2014 +0400

    0025439: Enabling shape binary persistence without OCAF

02Author
The fix has been pushed to the git repository.
03Commenter 3
No remarks, please check build and integrate
04Commenter 2
Branch [archived branch] has been updated forcibly by Participant.

[revision removed]
05Commenter 5
Dear Commenter 1,

Branch CR25439 (and products from GIT master) was compiled on Linux, MacOS and Windows platforms and tested.
[revision removed]

Number of compiler warnings:
occt component:
   Linux: 18 (18 on master)
   Windows: 0 (0 on master)
products component:
   Linux: 11 (11 on master)
   Windows: 1 (1 on master)
06Commenter 2
Branch [archived branch] has been deleted by Participant.

[revision removed]