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. 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 A3DRiBrepModel. 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. 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 A3DRiBrepModel.

Parameters
[in]pThe input B-rep model.
[in]psScaleThe optional scale.
[out]psPhysicalPropertiesDataThe wanted 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