|
马上注册,结交更多同行朋友,交流,分享,学习。
您需要 登录 才可以下载或查看,没有帐号?注册
x
利用该函数查询拉伸的参数,其中许多参数需要初始化和释放操作,请教如何正确的初始化和释放操作。
函数的说明如下:
extern UFUNEXPORT int UF_MODL_ask_extrusion(
tag_t feature_obj_id ,/* <I>
Object tag for the extruded feature
*/
int* num_objects ,/* <O>
Number of curves
*/
tag_t** objects ,/* <OF>
 ointer to an array containing the tags of the extruded curves.
This array must be freed by calling UF_free.
*/
UF_MODL_SWEEP_TRIM_object_p_t* trim_ptr ,/* <OF>
 ointer to structure for trimming data.
This pointer may be returned as NULL,
if trimming objects are not used.
NEEDS A FREE ROUTINE
*/
char** taper_angle ,/* <OF>
Taper angle. This must be freed by calling UF_free.
*/
char* limits[2] ,/* <OF>
Limits of extrusion. Each element of this array must be
freed by calling UF_free.
*/
char* offsets[2] ,/* <OF>
Offsets for open strings. Each element of this array must be
freed by calling UF_free.
*/
double region_point[3] ,/* <O>
 oint on region desired.
*/
logical* region_specified ,/* <O>
True or False for region desired.
*/
logical* solid_creation ,/* <O>
TRUE = a solid body.
*/
double direction[3] /* <O>
Extrusion direction
*/
); |
|