:orphan:

##########
PRC Writer
##########

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

+----------------------------------------------------------------------+
|                        **PRC**                                       |
+-----------------------------------------+----------------------------+
| **File Extension**                      | PRC                        |
+-----------------------------------------+----------------------------+
| **Supported Versions**                  | Latest                     |
+-----------------------------------------+----------------------------+
| **Platforms**                           | |wy| |ly| |my| |ay| |iy|   | 
+-----------------------------------------+----------------------------+
| :ref:`prc_wr_tessellation`              | |c_green| Supported        | 
+-----------------------------------------+----------------------------+
| :ref:`prc_wr_brep`                      | |c_green| Supported        | 
+-----------------------------------------+----------------------------+
| :ref:`prc_wr_pmi`                       | |c_green| Supported        | 
+-----------------------------------------+----------------------------+

PRC is the internal format of HOOPS Exchange.

It provides full support for all the concepts supported within HOOPS Exchange.
The recommended file extension is:

* .PRC


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

To export a model to PRC, use :cpp:func:`A3DAsmModelFileExportToPRCFile`.
Customize the export using :cpp:struct:`A3DRWParamsExportPRCData`.

.. code-block:: c

   A3DRWParamsExportPRCData sParamsExportData = A3D_MAKE_DATA(A3DRWParamsExportPRCData);
   // ... set export parameter options

   A3DAsmModelFileExportToPRCFile(pModelFile, &sParamsExportData, "path/to/file.prc");
   

.. _prc_wr_tessellation: 

Tessellation
============

PRC data can contain both a B-rep and a visualization definition in the same file.
During your export settings, you can define which type of data you would like stored in the file.

.. _prc_wr_brep: 

B-rep
=====

The PRC definition fully supports all the geometric and topological concepts supported by our readers. As such, all definitions are supported.

.. _prc_wr_pmi: 

PMI
===

All the PMI concepts supported by our readers are made available in PRC.

Assembly
========

The full assembly tree as defined in the source data can be exported to PRC.

Views
=====

Advanced view support is supported by PRC.

Export Options Specific to PRC
==============================

At export time you can decide if you want the B-rep data to be removed from the file.
