Bl
Bl
Bl
Bl
Bl
You are here:   Home »  Products »  PolyTrans|CAD+DCC  
Bl

Home > Supported File Formats > STEP to OpenGL C Code


How to convert STEP (.step,.stp) to OpenGL C Code (.cpp)?


PolyTrans|CAD+DCC performs mathematically precise CAD, DCC/Animation, GIS and BIM 3D file conversions into all key downstream 3D packages and file formats. Okino software is used and trusted throughout the world by many tens of thousands of 3D professionals in mission & production critical environments, backed by respectable personal support directly from our core development team.

     

STEP

STEP is the defacto 'go-to' MCAD translation file format when you do not have access to the original CAD part and assembly files. It is a long standing 'industry standard' that can be used to move MCAD/CAD file assets into many downstream 3D programs and file formats. Okino's PolyTrans|CAD provides for a defacto 3D STEP file conversion solution used by the world's primary & professional engineering, aerospace, military, corporate, animation/multi-media and VR/AR industries. STEP uses the .stp and .step file extensions.

STEP files are readable ASCII files which encode CAD parts and assembly information. Most respectable MCAD modellers will actively and correctly support the STEP AP203 and AP214 file formats. STEP was originally developed to supercede the IGES file format but has mostly supplemented but not replaced IGES. You would either want to export a "STEP AP214" file or an "IGES BREP solids" file depending on the MCAD modeller.

A much deeper overview plus explanation of STEP, and how it can be best used + understood, is outlined in this Okino WEB page.

Most people initially come to Okino asking for a STEP importer but it should only be used in specific situations as outlined in our "CAD Data Sourcing Suggestons and Rules".

     

OpenGL C Code

OpenGL is a cross-platform application programming interface (API) for rendering 2D and 3D vector graphics. The API is typically used to interact with a graphics processing unit (GPU), to achieve hardware-accelerated rendering.

Okino's OpenGL export converter writes out the scene database as a C code program in the Open GL scene description language. The resulting program can then be compiled and used to draw the 3D database directly using OpenGL. The database is output as a series of polygons with vertex positions, normals, colors and texture coordinates. In addition, the surface definitions (materials) associated with each polygon is used to set up the OpenGL shading parameters. Please note that each object is output as a separate C code function in the resulting file.