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

Home > Supported File Formats > 3MF to OpenGL C Code


How to convert 3MF 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.

     

3MF

3MF, 3D Manufacturing Format, is a modern replacement for the legacy STL (StereoLithography) file format with an explicit focus on the proper transmission of CAD and non-CAD model data for 3D printing as well as to downstream services and platforms. From Okino's long term perspective, the VRML2 file format was and is "just as good" for such requirements but never had the correct understanding nor traction since its introduction in 1995.

Features of 3MF over the legacy STL format includes: geometry instancing support, layered texture maps, multiple layers of UV texture coordinates, vertex colors and extended material types.

History, features, overviews, implementation partners and more can be read on the 3MF Consortiumís web site.

Note: Microsoft Windows uses the 3D Manufacturing Format (.3mf) for all 3D printing tasks.

Please also refer to the 3MF export converter for more information related to 3MF.

     

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.