3D Stream Module
Functions
Detailed Description
- group a3d_pdf_3Dstream_module
Module to define a 3D Stream to add in a 3D Artwork.
This module describes the functions and structures that allow you to add a 3D source in a 3D Annot.
Function Documentation
-
A3DStatus A3DPDF3DStreamCreateFromModelFileAsPRC(A3DPDFDocument *pDoc, A3DAsmModelFile *pModelFile, const A3DRWParamsExportPrcData *pParamsExportData, A3DPDF3DStream **pp3DStream, A3DRWParamsPrcWriteHelper **ppPrcWriteHelper)
Function to create a PRC Stream from a Model File.
The 3D Stream object is primarily created with this function, and it should be stored on the 3D Artwork through the structure A3DPDF3DArtworkData2. This function saves the modelfile in a PRC format, and creates a 3D Stream object from this data.
- Version
4.1
- Parameters:
pDoc – [in] The Document object to work with.
pModelFile – [in] The Document object to work with.
pParamsExportData – [in] The PRC export parameters.
pp3DStream – [out] The 3DStream object created.
ppPrcWriteHelper – [inout] Used to get PRC data such as unique identifiers of PRC nodes.
- Return values:
A3D_SUCCESS –
- Returns:
A3D_SUCCESS in case of success or an error code
-
A3DStatus A3DPDF3DStreamCreateFromModelFileAsU3D(A3DPDFDocument *pDoc, A3DAsmModelFile *pModelFile, const A3DRWParamsExportU3DData *pParamsExportData, A3DPDF3DStream **pp3DStream)
Function to create a U3D Stream from Model File.
The 3D Stream object is primarily created with this function, and it should be stored on the 3D Artwork through the structure A3DPDF3DArtworkData2. This function saves the modelfile in a U3D format, and creates a 3D Stream object from this data.
- Version
4.1
- Parameters:
pDoc – [in] The Document object to work with.
pModelFile – [in] The Document object to work with.
pParamsExportData – [in] The U3D export parameters.
pp3DStream – [out] The 3DStream object created.
- Return values:
A3D_SUCCESS –
- Returns:
A3D_SUCCESS in case of success or an error code
-
A3DStatus A3DPDF3DStreamCreateFromFile(A3DPDFDocument *pDoc, const A3DUTF8Char *pcFileName, const A3DBool bIsPRC, A3DPDF3DStream **pp3DStream)
Function to create a Stream from a file.
- Version
4.1
- Parameters:
pDoc – [in] The Document object to work with.
pcFileName – [in] The full file path of a PRC or U3D file.
bIsPRC – [in] Specifies the format of the data (true is for PRC, false if for U3D).
pp3DStream – [out] The 3DStream object created.
- Return values:
A3D_SUCCESS –
- Returns:
A3D_SUCCESS in case of success or an error code