Tools for Debugging and Testing

This page lists tools and code snippets to help debugging and testing applications using Open CASCADE.

dumping data


Using BRepTools::Write you can dump a arbitrary shape object to disk and reload it later using BRepTools::Read. But be careful. The used ascii data format cannot be expected to stay invariant between different versions of Open CASCADE!

ostream functions

I have written a number of functions to print information about objects from the gp package.
See the attached files below!

geometry viewer

This tool allows to visualize TopoDS_Shape and geometry entries at any point in the program - running its own main loop until you close the window.
TODO(upload and link source code)

STEP analyzer

This little tool loads a STEP/IGES file and prints out the topology and geometry entries.
TODO(upload and link source code)