Data Structures

struct  A3DCrvOffsetData
 Offset structure. More...
 

Functions

A3DStatus A3DCrvOffsetCreate (const A3DCrvOffsetData *pData, A3DCrvOffset **ppCrv)
 Creates an A3DCrvOffset from A3DCrvOffsetData structure. More...
 
A3DStatus A3DCrvOffsetGet (const A3DCrvOffset *pCrv, A3DCrvOffsetData *pData)
 Populates the A3DCrvOffsetData structure. More...
 

Detailed Description

Version
2.0

Entity type is kA3DTypeCrvOffset.

For the canonical definition of this curve, see the "SerializeOffset" section of the PRC Format Specification.

You can use an existing offset curve entity as the base curve used to create a new offset curve. That is, you can specify

A3DPRCGeometryCrvOffset.jpg
Note
A3DParameterizationData must have A3DParameterizationData::m_dCoeffA set to 1, A3DParameterizationData::m_dCoeffB set to 0 and an A3DIntervalData identical to the one of A3DCrvOffsetData::m_pBasisCrv.
A3DMiscCartesianTransformationData should correspond to identity transformation.

Function Documentation

◆ A3DCrvOffsetGet()

A3DStatus A3DCrvOffsetGet ( const A3DCrvOffset pCrv,
A3DCrvOffsetData pData 
)

Populates the A3DCrvOffsetData structure.

Version
2.0
Returns
A3D_SUCCESS in case of success or an error code
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

◆ A3DCrvOffsetCreate()

A3DStatus A3DCrvOffsetCreate ( const A3DCrvOffsetData pData,
A3DCrvOffset **  ppCrv 
)

Creates an A3DCrvOffset from A3DCrvOffsetData structure.

Version
2.0
Warning
Associated transformation must be Identity
Trimming interval must be defined inside curve definition
Parameterization must have CoeffA = 1. and CoeffB = 0.
Returns
A3D_SUCCESS in case of success or an error code
Return values
A3D_INVALID_DATA_STRUCT_SIZE
A3D_INVALID_DATA_STRUCT_NULL
A3D_CRV_OFFSET_CANNOT_CREATE_CANONICAL
A3D_SUCCESS