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

Home > Supported File Formats > Parasolid to OpenGL C Code


How to convert Parasolid (.x_t,.x_b) 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.

     

Parasolid

Parasolid is a 3D geometric modelling toolkit developed by Siemens PLM's components group in Cambridge, U.K. This toolkit provides hundreds of complex mathematical algorithms and functions which allow software developers to create 3D modelling software based on "BREP solids" modelling techniques (among others). The toolkit uses a "transmit" file format to move data to and from the Parasolid toolkit in native format. The ASCII form uses the .x_t file extension and the binary form uses the .x_b file extension.

Since the late 1990s Parasolid has been used as the core modelling kernel by well known MCAD programs such as Unigraphics NX, SOLIDWORKS, Solid Edge, MicroStation, ANSYS, Delcam and others. Newer versions of the JT file format also include Parasolid functionality by way of the "XT BREP" geometry primitive.

Okino's PolyTrans|CAD provides for a defacto 3D Parasolid file conversion solution used by the world's primary & professional engineering, aerospace, military, corporate, animation/multi-media and VR/AR industries. However, we generally prefer that our core customers utilize either the original native CAD files (such as native SolidWorks files), a STEP AP214 file or an 'IGES BREP solids' file as outlined on our "CAD Data Sourcing Suggestons and Rules" page.

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

     

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.