STEP file source code

Hi all,
I'm currently writing an open source electronic design application, and would like it to have the ability to import STEP data. Would it be possible to use code from Open Cascade in my own application? I.E. does the license allow that?

If so, could anyone give me a pointer as to how to go about extracting the STEP file functionality? The amount of code is overwhelming!

Many thanks in advance for any help.

Hugo Elias - www.liquidpcb.org

Matthias Teich's picture

Hi!

Yes, I think you may use it.
Details can be found here "http://www.opencascade.org/occ/license/"

The import of a STEP file is easy:

STEPControl_Reader Reader;
Reader.ReadFile(filename);
Reader.TransferRoots();
TopoDS_Shape shape = Reader.OneShape();

Then you have a TopoDS_Shape you can work with.