
#####################################
A3DComputeModelFilePhysicalProperties
#####################################

.. c:function:: A3DStatus A3DComputeModelFilePhysicalProperties(const A3DAsmModelFile *p, A3DPhysicalPropertiesData *psPhysicalProperties)

   .. rst-class:: sig-pretty-signature
   
      | :c:enum:`~A3DStatus` A3DComputeModelFilePhysicalProperties(*const* :c:type:`~A3DAsmModelFile`\ \* **p**\ , :c:struct:`~A3DPhysicalPropertiesData`\ \* **psPhysicalProperties**\ )
   
   Function to compute the physical properties (surface area, volume and gravity center, and since 11.2 the surfacic gravity center and the surfacic and volumic inertia matrix) of a modelfile, typically an assembly.
   
   Data is returned in the modelfile unit, without density.
   
   Note that since 11.2, the input psPhysicalPropertiesData structure now has a couple of input parameters with which precision can be adjusted, in addition to the new return values.
   
   The inertia matrices are provided relative to the computed gravity centers, with respect to the global X, Y and Z directions. The return values are provided in the modelfile's unit. The surfacic quantities take into account all representation items, whereas the ones for which the volume was not computed will not be used for the volumic quantities. Note that density is not taken into account. Return values are purely volumic or surfacic. For models with a constant density different than 1 unit of weight per unit of volume, results must be adjusted: matrices must be multiplied by the density of the input CAD file.
   
   **Parameters**
   
   
      **p**\ : The input modelfile.
   
      **psPhysicalProperties**\ : The physical properties.
   
   
   **Returns**
   
   
      ``A3D_SUCCESS``\ on success, or an error code on failure
   
   




