#include <uf.h> #include <uf_modl.h> static void do_it(void) { // 创建圆台 UF_FEATURE_SIGN sign = UF_NULLSIGN; double origin[3] = { 15.0, 20.0, 30.0 }; char* dims[2] = { "50", "25" }; double dir[3] = { 0.0, 0.0, 1.0 }; tag_t coneFeat = NULL_TAG; UF_MODL_create_cone1(sign, origin, "40", dims, dir, &coneFeat); } void ufusr(char* param, int* retcode, int paramLen) { do_it(); } int ufusr_ask_unload(void) { return (UF_UNLOAD_IMMEDIATELY); }
标签:圆台,origin,int,void,NX,二次开发,UF From: https://www.cnblogs.com/xuds/p/17086475.html