:orphan:

####################
Wavefront OBJ Writer
####################

.. rst-class:: format-title-block

+----------------------------------------------------------------------+
|                        **Wavefront OBJ**                             |
+-----------------------------------------+----------------------------+
| **File Extension**                      | OBJ                        |
+-----------------------------------------+----------------------------+
| **Supported Versions**                  | Any                        |
+-----------------------------------------+----------------------------+
| **Platforms**                           | |wy| |ly| |my| |an| |iy|   | 
+-----------------------------------------+----------------------------+
| **B-rep**                               | |c_grey| N/A               | 
+-----------------------------------------+----------------------------+
| **PMI**                                 | |c_grey| N/A               | 
+-----------------------------------------+----------------------------+
| **Tessellation**                        | |c_green|                  | 
+-----------------------------------------+----------------------------+

Wavefront OBJ is an open file format created by Wavefront Technologies in the early 1990s as part of their Advanced Visualizer software. This format is widely used in 3D graphics and has been adopted by various other applications due to its open nature and compatibility with multiple software tools. 

The OBJ writer allows developers to export the PRC tree to OBJ.

HOOPS Exchange allows to control the folder in which the textures are written.


How to Export to PRC
====================

Export parameters are available using :struct:`A3DRWParamsExportObjData` and export is performed by calling :func:`A3DAsmModelFileExportToObjFile`.

.. code-block:: c

   A3DRWParamsExportObjData sParamsExportData;
   A3D_INITIALIZE_DATA(A3DRWParamsExportObjData, sParamsExportData);
   // ... set export parameter options

   A3DAsmModelFileExportToObjFile(pModelFile, &sParamsExportData, "path/to/file.obj");


Limitations
===========

The export is available for Windows, Linux and macOS only.
