A3DSDKGraphics.h
Types
Functions
Detailed Description
- Author
Tech Soft 3D
- Version
24.8
- Date
November 2024
- Copyright
Copyright (c) 2010 - 2024 by Tech Soft 3D, Inc. All rights reserved.
Function Documentation
-
A3DStatus A3DGlobalInsertGraphLinePattern(const A3DGraphLinePatternData *pData, A3DUns32 *puiIndexLinePattern)
Creates a line pattern, returning its index.
When given an
A3DGraphLinePatternData
, the function searches for an already existing descriptor of the same value and returns its index. If the descriptor does not exist, it is created and a new index is returned. In case of failure*puiIndexRgbColor
is unchanged.- Version
2.0
A3DDouble[] aLengths = {1.0, 3.0}; A3DGraphLinePatternData descriptor; A3D_INITIALIZE_DATA(A3DGraphLinePatternData, descriptor); descriptor.m_uiNumberOfLengths = 2; descriptor.m_pdLengths = aLengths; descriptor.m_dPhase = 0.0; descriptor.m_bRealLength = A3D_TRUE; A3DUns32 idx_0 = A3D_DEFAULT_LINEPATTERN_INDEX; A3DStatus result = A3DGlobalInsertGraphLinePattern(&descriptor, &idx_0); assert(result == A3D_SUCCESS); Second insertion with the same data, expect index to be the same. A3DUns32 idx_1 = A3D_DEFAULT_LINEPATTERN_INDEX; result = A3DGlobalInsertGraphLinePattern(&descriptor, &idx_1); assert(result == A3D_SUCCESS); assert(idx_0 == idx_1);
- Parameters:
pData – [in] The line pattern descriptor to insert.
puiIndexLinePattern – [out] The resulting index for the line pattern.
- Return values:
A3D_SUCCESS – in case of success.
A3D_INITIALIZE_NOT_CALLED – if the library is not initialized.
A3D_INVALID_DATA_STRUCT_SIZE – if
pData
is incorrectly initializedA3D_INVALID_DATA_STRUCT_NULL – if
pData
is null.
- Returns:
A3D_SUCCESS or an error code.
-
A3DStatus A3DMiscCascadedAttributesPushTessFace(A3DMiscCascadedAttributes *pAttr, const A3DRiRepresentationItem *pRepItem, const A3DTessBase *pTessBase, const A3DTessFaceData *psTessFaceData, A3DUns32 uiFaceIndex, const A3DMiscCascadedAttributes *pFather)
Push a A3DMiscCascadedAttributesData for a A3DTessFaceData.
- Version
2.0
- Return values:
A3D_INITIALIZE_NOT_CALLED –
A3D_INVALID_DATA_STRUCT_SIZE –
A3D_INVALID_DATA_STRUCT_NULL –
A3D_INVALID_ENTITY_NULL –
A3D_INVALID_ENTITY_TYPE –
A3D_SUCCESS –
- Returns:
A3D_SUCCESS
on success, or an error code on failure
-
A3DStatus A3DMiscCascadedAttributesEntityReferencePush(A3DMiscCascadedAttributes *pAttr, const A3DAsmProductOccurrence *pOccurrence, A3DPtr *ppPtr)