Physical properties

Data Structures

struct  A3DPhysicalPropertiesData
 Physical property settings. More...
 

Functions

A3DStatus A3DComputeFaceArea (const A3DTopoFace *pFace, const A3DTopoContext *pBrepDataTopoContext, A3DDouble *pArea)
 Function to compute the surface of the current A3DTopoFace. The current TopoContext is needed in order to get the correct current scale. More...
 
A3DStatus A3DComputeModelFilePhysicalProperties (const A3DAsmModelFile *p, A3DPhysicalPropertiesData *psPhysicalProperties)
 Function to compute the physical properties (the gravity center, surface area and volume) of a modelfile, typically an assembly. Data is returned in the modelfile unit;. More...
 
A3DStatus A3DComputePhysicalProperties (const A3DRiBrepModel *p, const A3DVector3dData *psScale, A3DPhysicalPropertiesData *psPhysicalPropertiesData)
 Function to compute the physical properties (the gravity center, surface area and volume) of a BrepModel. More...
 
A3DStatus A3DComputePolyBrepPhysicalProperties (const A3DRiPolyBrepModel *p, const A3DVector3dData *psScale, A3DPhysicalPropertiesData *psPhysicalPropertiesData)
 Function to compute the physical properties (the gravity center, surface area and volume) of a PolyBrepModel. An optional scale, psScale, can be used. It can be either uniform or not. Physical properties will be computed after having scaled the geometrical data in the A3DRiPolyBrepModel. More...
 

Detailed Description

Version
5.2

Function Documentation

A3DStatus A3DComputeFaceArea ( const A3DTopoFace pFace,
const A3DTopoContext pBrepDataTopoContext,
A3DDouble pArea 
)

Function to compute the surface of the current A3DTopoFace. The current TopoContext is needed in order to get the correct current scale.

Parameters
[in]pFaceThe input A3DTopoFace.
[in]pBrepDataTopoContextThe corresponding A3DTopoContext of the current A3DTopoBrepData who is owing the A3DTopoFace.
[out]pAreaThe surface of the A3DTopoFace in the current unit.
Returns
A3D_SUCCESS
A3D_ERROR
A3D_INVALID_ENTITY_TYPE
A3D_INVALID_ENTITY_NULL
A3D_INITIALIZE_NOT_CALLED
Version
7.0
A3DStatus A3DComputeModelFilePhysicalProperties ( const A3DAsmModelFile p,
A3DPhysicalPropertiesData psPhysicalProperties 
)

Function to compute the physical properties (the gravity center, surface area and volume) of a modelfile, typically an assembly. Data is returned in the modelfile unit;.

Parameters
[in]pThe input modelfile.
[out]psPhysicalPropertiesThe physical properties.
Returns
A3D_SUCCESS
A3D_ERROR
Version
5.2
A3DStatus A3DComputePhysicalProperties ( const A3DRiBrepModel p,
const A3DVector3dData psScale,
A3DPhysicalPropertiesData psPhysicalPropertiesData 
)

Function to compute the physical properties (the gravity center, surface area and volume) of a BrepModel.

To obtain the values in the unit of the model file, pass the scaling of the B-rep in the psScale parameter.

The value of psScale should be the cumulative scaling that results from traversing the assembly tree from the root to the designated B-rep, multiplying the scaling of the current node by the cumulative scaling of all of its parent nodes.

Parameters
[in]pThe input B-rep model.
[in]psScaleThe optional scale.
[out]psPhysicalPropertiesDataThe computed physical properties.
Returns
A3D_SUCCESS
A3D_ERROR
Version
5.2
A3DStatus A3DComputePolyBrepPhysicalProperties ( const A3DRiPolyBrepModel p,
const A3DVector3dData psScale,
A3DPhysicalPropertiesData psPhysicalPropertiesData 
)

Function to compute the physical properties (the gravity center, surface area and volume) of a PolyBrepModel. An optional scale, psScale, can be used. It can be either uniform or not. Physical properties will be computed after having scaled the geometrical data in the A3DRiPolyBrepModel.

Parameters
[in]pThe input poly B-rep model.
[in]psScaleThe optional scale.
[out]psPhysicalPropertiesDataThe wanted physical properties.
Returns
A3D_SUCCESS
A3D_ERROR
Version
6.1