Adding Datums
Functions Introduced:
Use the function ProDatumdataAlloc() to allocate memory to the datum data structure.
Initializing Datums
Use the function ProDatumdataInit() to initialize the datum data structure. The input arguments of this function are:
datum_id—Specifies a unique identifier of the datum.
datum_type—Specifies the datum type. The types of datums are:
PRO_CSYS
PRO_CURVE
PRO_DATUM_PLANE
datum_name—Specifies the name to be assigned to the datum.
p_datum_ob j—The datum object that contains the geometrical information about the datum. Depending on the type of the datum to be created, one of the following functions must be used to create the ProDatumobject data structure.
Note:
 
The value PRO_TK_BSPL_MULTI_INNER_KNOTS returned by ProDatumCurvedataInit() should be treated as a warning. This value indicates that the geometry finally imported in is different from the geometry initially supplied to the function. The geometry is not rejected by ProDatumCurvedataInit() and is used to generate the ProCurvedata data structure.
Use the function ProDatumdataMemoryFree() to free the top-level memory used by the datum data structure.
¿Fue esto útil?