Data Structures

struct  A3DMultiPlanarSectionData
 
struct  A3DPlanarSectionData
 A3DPlanarSectionData structure. More...
 

Functions

A3DStatus A3DComputePlanarSectionOnModelFile (A3DAsmModelFile const *pModelFile, A3DPlanarSectionData const *psSectionParametersData, A3DUns32 *pNumberOfSections, A3DRiSet ***pppRISectionElements)
 Function to compute plane section on ModelFile. More...
 
A3DStatus A3DComputePlanarSectionOnRepresentationItem (A3DRiBrepModel const *pRiBrepModel, A3DPlanarSectionData const *psSectionParametersData, A3DRiSet **ppRISectionResults)
 Function to compute plane section on BrepModel. More...
 
A3DStatus A3DCutWithMultiPlanarSectionOnModelFile (A3DAsmModelFile const *pModelFile, A3DMkpView const *pOptMrkRView, A3DMultiPlanarSectionData const *psSectionParametersData, A3DUns32 *pNumberOfRepItems, A3DRiRepresentationItem ***pppRIRepresentationItem, A3DRiRepresentationItem ***pppRIPlanarSections)
 Function to compute the result of a section with several planes on a A3DAsmModelFile. More...
 
A3DStatus A3DCutWithMultiPlanarSectionOnRepresentationItems (A3DUns32 uiNbRepItems, A3DRiRepresentationItem const **apRepItems, A3DDouble **pOptPlacements, A3DMultiPlanarSectionData const *psSectionParametersData, A3DUns32 *pNumberOfRepItems, A3DRiRepresentationItem ***pppRIRepresentationItem, A3DRiRepresentationItem ***pppRIPlanarSections)
 Function to compute the result of a section with several planes on a set of A3DRiRepresentationItem. More...
 

Detailed Description

Version
6.1

Compute section functions for model file.

See also
A3DComputePlanarSectionOnRepresentationItem
A3DComputePlanarSectionOnModelFile

Function Documentation

A3DStatus A3DComputePlanarSectionOnRepresentationItem ( A3DRiBrepModel const *  pRiBrepModel,
A3DPlanarSectionData const *  psSectionParametersData,
A3DRiSet **  ppRISectionResults 
)

Function to compute plane section on BrepModel.

Version
7.0
Parameters
[in]pRiBrepModelB-rep models.
[in]psSectionParametersDataParameters of the planar section.
[out]ppRISectionResultsArray of section curves. ppRISectionResults is automatically allocated by A3DComputePlanarSectionOnRepresentationItem. It has to be freed with a call to A3DComputePlanarSectionOnRepresentationItem(NULL, psSectionParametersData, ppRISectionCurvesis).
Returns
A3D_SUCCESS
A3D_INITIALIZE_NOT_CALLED
A3D_INVALID_DATA_STRUCT_SIZE
A3D_INVALID_DATA_STRUCT_NULL
A3D_INVALID_ENTITY_NULL
A3D_INVALID_ENTITY_TYPE
A3D_INCOMPATIBLE_FUNCTION_WITH_KEEP_PARSED_ENTITY_MODE
A3D_ERROR
A3DStatus A3DComputePlanarSectionOnModelFile ( A3DAsmModelFile const *  pModelFile,
A3DPlanarSectionData const *  psSectionParametersData,
A3DUns32 pNumberOfSections,
A3DRiSet ***  pppRISectionElements 
)

Function to compute plane section on ModelFile.

Version
7.0

.

Parameters
[in]pModelFileModel file to section.
[in]psSectionParametersDataParameters of the planar section.
[out]pNumberOfSectionsNumber of A3DRiSets.
[out]pppRISectionElementsArray of A3DRiSets. ppRISectionElements is automatically allocated by A3DComputePlanarSectionOnModelFile. It has to be freed with a call to A3DComputePlanarSectionOnModelFile(NULL, psSectionParametersData, pNumberOfSections, ppRISectionElements).
Returns
A3D_SUCCESS
A3D_INITIALIZE_NOT_CALLED
A3D_INVALID_DATA_STRUCT_SIZE
A3D_INVALID_DATA_STRUCT_NULL
A3D_INVALID_ENTITY_NULL
A3D_INVALID_ENTITY_TYPE
A3D_INCOMPATIBLE_FUNCTION_WITH_KEEP_PARSED_ENTITY_MODE
A3D_ERROR
A3DStatus A3DCutWithMultiPlanarSectionOnRepresentationItems ( A3DUns32  uiNbRepItems,
A3DRiRepresentationItem const **  apRepItems,
A3DDouble **  pOptPlacements,
A3DMultiPlanarSectionData const *  psSectionParametersData,
A3DUns32 pNumberOfRepItems,
A3DRiRepresentationItem ***  pppRIRepresentationItem,
A3DRiRepresentationItem ***  pppRIPlanarSections 
)

Function to compute the result of a section with several planes on a set of A3DRiRepresentationItem.

Version
8.2

Call A3DCutWithMultiPlanarSectionOnRepresentationItems( 0, NULL, NULL, NULL, pNumberOfRepItems, pppRIRepresentationItem, pppRIPlanarSections) to release pppRIRepresentationItem and pppRIPlanarSections data

Parameters
[in]uiNbRepItemsNumber of A3DRiRepresentationItem.
[in]apRepItemsset of A3DRiRepresentationItem.
[in]pOptPlacementsOptional set of representation item placements (16 A3DDouble matrix).
[in]psSectionParametersDatadefine the section to use.
[out]pNumberOfRepItemsNumber of A3DRiRepresentationItem in pppRIRepresentationItem and pppRIPlanarSections array.
[out]pppRIRepresentationItemA3DRiRepresentationItem corresponding to the boolean section results. Can be NULL if a A3DRiRepresentationItem if fully cutted by the section.
[out]pppRIPlanarSectionsA3DRiRepresentationItem corresponding to planar section for each A3DRiRepresentationItem
Returns
A3D_SUCCESS
A3D_INVALID_DATA_STRUCT_NULL
A3D_INVALID_DATA_STRUCT_SIZE
A3D_INVALID_ENTITY_TYPE
A3D_INVALID_DATA
A3D_INCOMPATIBLE_FUNCTION_WITH_KEEP_PARSED_ENTITY_MODE
A3D_ERROR
A3DStatus A3DCutWithMultiPlanarSectionOnModelFile ( A3DAsmModelFile const *  pModelFile,
A3DMkpView const *  pOptMrkRView,
A3DMultiPlanarSectionData const *  psSectionParametersData,
A3DUns32 pNumberOfRepItems,
A3DRiRepresentationItem ***  pppRIRepresentationItem,
A3DRiRepresentationItem ***  pppRIPlanarSections 
)

Function to compute the result of a section with several planes on a A3DAsmModelFile.

Version
8.2

Call A3DCutWithMultiPlanarSectionOnModelFile( NULL, pOptMrkRView, psSectionParametersData, NULL, pNumberOfRepItems, pppRIRepresentationItem, pppRIPlanarSections) to release pppRIRepresentationItem and pppRIPlanarSections data

If pOptMrkRView is a cutting view, psSectionParametersData can be set to NULL. In this case, cutting planes contains in pOptMrkRView are use. Planes must to ordained, and set a profile, if not an A3D_TOOLS_INVALID_SECTION_PLANE error is returned. Note: If the model file doesn't contain any representation items, function returns A3D_INVALID_DATA error;

Parameters
[in]pModelFileModel file to section.
[in]pOptMrkRViewoptional A3DMkpView (filter and/or move entities).
[in]psSectionParametersDatadefine the section to use (can be NULL if pOptMrkRView is a cutting view).
[out]pNumberOfRepItemsNumber of A3DRiRepresentationItem in pppRIRepresentationItem and pppRIPlanarSections array.
[out]pppRIRepresentationItemA3DRiRepresentationItem corresponding to the section results. Can be NULL if a A3DRiRepresentationItem if fully cutted by the section.
[out]pppRIPlanarSectionsA3DRiRepresentationItem corresponding to planar section for each A3DRiRepresentationItem
Returns
A3D_SUCCESS
A3D_INVALID_DATA_STRUCT_NULL
A3D_INVALID_DATA_STRUCT_SIZE
A3D_INVALID_ENTITY_TYPE
A3D_INVALID_DATA
A3D_INCOMPATIBLE_FUNCTION_WITH_KEEP_PARSED_ENTITY_MODE
A3D_ERROR
A3D_TOOLS_INVALID_SECTION_PLANE