
Thu, 05/05/2011 - 11:08
Forums:
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
Thu, 05/05/2011 - 12:35
Hi PG,
BinTools dedicated for processing binary format of files.
Probably your file is in ascii format.
Check it, please.
Regards
Thu, 05/05/2011 - 15:40
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
Tue, 05/10/2011 - 10:21
How to create binary format BREP file's ?
thanks in advance.
- PG
Tue, 05/10/2011 - 11:38
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