Open CASCADE, the 3D modelling kernel
3D modeling & numerical simulation

Open CASCADEShowroomGet it!Developer CornerSupportAbout us
Technical overview
Areas of use
Advantages
FAQ
Screenshots
Shape factory
Shape gallery
Demonstrations
What's new
System requirements
Download Center
Public license
Documentation
Getting started
Forum
Open Source community
Training and e-learning
A la Carte Support
Value-added software
CD-ROM
Company Profile
Contacts and Locations
Customers
News
Home / Developer Corner / Forum / Problems writing binary brep using BinTools_ShapeSet

Forum

Problems writing binary brep using BinTools_ShapeSet
Adam Compeau2009/06/30 17:26
I'm trying to write a TopoDS_Shape out in a binary format to cut down on read times. When I load the shape into a BinTools_ShapeSet object and write it out to file, the resulting output file is empty (0 bytes). Am I doing something wrong? Is there another way to write out a shape in a binary format? Any help would be greatly appreciated.


TopoDS_Shape outShape = aShape;
ofstream out(outFilename);

BinTools_ShapeSet* b = new BinTools_ShapeSet();
b->Add(outShape);
b->Write(out);


 
 
Latest news
  • Open CASCADE Technology: Ten Years in Open Source
  • Principia - AvPro Success Story
  • AREVA NP - Charm Success Story

  • © Open CASCADE 2000 - 2010  |  Search  |  Contacts