A3DSDKGraphics.h

Types

A3DGraphicsData

A3DGraphStyleData

A3DGraphRgbColorData

A3DGraphLinePatternData

A3DGraphMaterialData

A3DGraphPictureData

A3DGraphDottingPatternData

A3DGraphHatchingPatternLineData

A3DGraphHatchingPatternData

A3DGraphSolidPatternData

A3DGraphVPicturePatternData

A3DGraphCameraData

A3DGraphAmbientLightData

A3DGraphPointLightData

A3DGraphSpotLightData

A3DGraphDirectionalLightData

A3DGraphSceneDisplayParametersData

A3DMiscCascadedAttributesData

Functions

A3DStatus

A3DGraphicsGet

A3DStatus

A3DGraphicsCreate

A3DStatus

A3DGraphicsDelete

A3DStatus

A3DGlobalGetGraphStyleData

A3DStatus

A3DGlobalInsertGraphStyle

A3DStatus

A3DGlobalGetGraphRgbColorData

A3DStatus

A3DGlobalInsertGraphRgbColor

A3DStatus

A3DGlobalGetGraphLinePatternData

A3DStatus

A3DGlobalInsertGraphLinePattern

A3DStatus

A3DGlobalGetGraphMaterialData

A3DStatus

A3DGlobalInsertGraphMaterial

A3DStatus

A3DGlobalGetGraphPictureData

A3DStatus

A3DGlobalInsertGraphPicture

A3DStatus

A3DGlobalGetGraphDottingPatternData

A3DStatus

A3DGlobalInsertGraphDottingPattern

A3DStatus

A3DGlobalGetGraphHatchingPatternData

A3DStatus

A3DGlobalInsertGraphHatchingPattern

A3DStatus

A3DGlobalGetGraphSolidPatternData

A3DStatus

A3DGlobalInsertGraphSolidPattern

A3DStatus

A3DGlobalGetGraphVPicturePatternData

A3DStatus

A3DGlobalInsertGraphVPicturePattern

A3DStatus

A3DGraphCameraGet

A3DStatus

A3DGraphCameraCreate

A3DStatus

A3DGraphAmbientLightGet

A3DStatus

A3DGraphAmbientLightCreate

A3DStatus

A3DGraphPointLightGet

A3DStatus

A3DGraphPointLightCreate

A3DStatus

A3DGraphSpotLightGet

A3DStatus

A3DGraphSpotLightCreate

A3DStatus

A3DGraphDirectionalLightGet

A3DStatus

A3DGraphDirectionalLightCreate

A3DStatus

A3DGraphSceneDisplayParametersGet

A3DStatus

A3DGraphSceneDisplayParametersCreate

A3DStatus

A3DMiscCascadedAttributesCreate

A3DStatus

A3DMiscCascadedAttributesDelete

A3DStatus

A3DMiscCascadedAttributesGet

A3DStatus

A3DMiscCascadedAttributesPush

A3DStatus

A3DMiscCascadedAttributesPushTessFace

A3DStatus

A3DMiscCascadedAttributesEntityReferencePush

A3DStatus

A3DMiscPointerFromIndexGet

A3DStatus

A3DMiscRootBaseInsertAttribute

Detailed Description

Author

Tech Soft 3D

Version

24.7

Date

October 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 initialized

  • A3D_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)