Offset Curve

Types

A3DCrvOffsetData

Functions

A3DStatus

A3DCrvOffsetGet

A3DStatus

A3DCrvOffsetCreate

Detailed Description

group a3d_crvoffset

Entity type is kA3DTypeCrvOffset.

Version

2.0

For the canonical definition of this curve, see the “SerializeOffset” section of the .

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

Note

A3DMiscCartesianTransformationData should correspond to identity transformation.

Function Documentation

A3DStatus A3DCrvOffsetGet(const A3DCrvOffset *pCrv, A3DCrvOffsetData *pData)

Populates the A3DCrvOffsetData structure.

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 A3DCrvOffsetCreate(const A3DCrvOffsetData *pData, A3DCrvOffset **ppCrv)

Creates an A3DCrvOffset from A3DCrvOffsetData structure.

Version

2.0

Warning

Associated transformation must be Identity

Warning

Trimming interval must be defined inside curve definition

Warning

Parameterization must have CoeffA = 1. and CoeffB = 0.

Return values:
  • A3D_INVALID_DATA_STRUCT_SIZE

  • A3D_INVALID_DATA_STRUCT_NULL

  • A3D_CRV_OFFSET_CANNOT_CREATE_CANONICAL

  • A3D_SUCCESS

Returns:

A3D_SUCCESS on success, or an error code on failure