DiscussionsIssue archiveOther usage issues

Archived discussion

reading brep file

Other usage issuesThu, 05/05/2011 - 11:084 replies

Browse this forum
QuestionAuthor

Hi

Getting this messages from the code level while reading a BREP file,

BinTools/BinTools_ShapeSet.cxx: cout TopTools/TopTools_ShapeSet.cxx: cout

What's the significance ?
Also these print statements need to be caught rather than printed on the console.

regards

- PG

Discussion

4 archived replies

Posts are displayed in their archived order.

01Commenter-1

Hi PG,
BinTools dedicated for processing binary format of files.
Probably your file is in ascii format.
Check it, please.
Regards

02Author

Hi

I am writing using the ASCII format of writing BREP using the BRepTools API,

Writes the shape Sh in ASCII format to the stream S.

static Standard_Boolean Write(const TopoDS_Shape& Sh,
const Standard_CString File);
I checked the file size , it was ZERO ( nothing was written).
So the API method 'Read' is not catching and throwing any
exceptions.

regards

- PG

03Author

How to create binary format BREP file's ?

thanks in advance.

- PG

04Commenter-1

Hi PG,
As a rule in OCCT topological data are kept in BRep files using ascii format (see BRepTools::Read | Write).
Nevertheless OCCT has all low level tools (BinTools) to do it by yourself.
If you want to use our help in this task, you may contact us via Contact Form http://www.opencascade.org/about/contacts/.
We will try to find a solution acceptable for you.
Regards