reading brep file

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

Forum supervisor's picture

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

PG's picture

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

PG's picture

How to create binary format BREP file's ?

thanks in advance.

- PG

Forum supervisor's picture

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