Exporting b-spline surfaces to STEP file

Hello-

We generate b-spline surfaces (3rd or 5th degree) in custom software.

Can we use OCC 6.1 to write these to a STEP file so they be imported into commercial CAD/CAE programs?

If so, where should we start?

Thanks,

Fred Vetter

Pawel's picture

hi Fred,

you can handle b-splines up to 25th degree.

Use the Geom_BSplineSurface object and then simply STEPControl_Writer to write the STEP-file (use BRepBuilderAPI_MakeFace to make a TopoDS_Shape out of your BSplineSurface).

Check out the examples.

You can use OC in commercial apps. Check out the license.

Good luck
Pawel

vetter's picture

Pawel-

Thanks for your help; that gives us something to start with.

Aside from the "samples" directory, I cannot find any examples.

Is there another set of files I should download?

Thank you again for your help,

Fred V

Jan Brüninghaus's picture

http://www.opencascade.org/getocc/download/animated_demo/

The examples are only for windows and provided without the source-code, but you get small code-pieces in the examples, how to use the shown functions.

vetter's picture

Jan-

Thanks for the additional information. We will look through
the examples carefully.

Fred V