|
- UF_initialize();
- //创建块
- double origin[3]={0.0,0.0,0.0};
- char* dimensions[3] = { "100","200","300" };
- UF_FEATURE_SIGN sign = UF_NULLSIGN;
- tag_t parttag = NULL_TAG;
- UF_MODL_create_block1(sign, origin, dimensions, &parttag);
- //创建平移或复制的矩阵
- double tra[3] = { 500.0,500.0,500.0 };
- double mix[16];
- uf5943(tra, mix);
- //测试平移或复制
- int number_obj = 1;
- int dest_layer = 0;
- int move_or_copy = 1;
- int trace_curvers = 2;
- tag_t copies = NULL_TAG ;
- tag_t trace_curve_group = NULL_TAG;
- int status = NULL;
- tag_t obj[] = { parttag };
- uf5947(mix, obj, &number_obj, &move_or_copy, &dest_layer, &trace_curvers, &copies, &trace_curve_group, &status);
- char message[256];
- sprintf(message, " % d", status);
- uc1601(message, 1);
-
- UF_terminate();
复制代码 咱本来是想测试复制块的,但是会报错askusermessage( ) or askSyslogMessage,无法得到status状态码
于是我试试平移,发现这个代码无法成功,status状态码是3,即Invalid Object (Not Alive Or Not
Transformable)。求教各位大佬看看哪里错了
|
|