1 NX11+VS2013 2 3 #include <uf.h> 4 #include <uf_modl.h> 5 6 7 UF_initialize(); 8 9 //创建圆锥 10 UF_FEATURE_SIGN Sign = UF_NULLSIGN;//设置布尔 11 double Origin[3] = { 0.0, 0.0, 0.0 };//原点 12 char *Height = "100";//高度 13 char *Diam[2] = { "50", "20" };//顶部直径,底部直径 14 double Dirction[3] = { 0.0, 0.0, 1.0 };//矢量方向 15 tag_t ConeTag = NULL_TAG; 16 UF_MODL_create_cone1(Sign, Origin, Height, Diam, Dirction, &ConeTag); 17 18 19 //创建圆锥 20 UF_FEATURE_SIGN Sign1 = UF_NULLSIGN;//设置布尔 21 double Origin1[3] = { 0.0, 100.0, 0.0 };//原点 22 char *Height1 = "100";//高度 23 char *Diam1[2] = { "50", "0" };//顶部直径,底部直径 24 double Dirction1[3] = { 0.0, 0.0, 1.0 };//矢量方向 25 tag_t ConeTag1 = NULL_TAG; 26 UF_MODL_create_cone1(Sign1, Origin1, Height1, Diam1, Dirction1, &ConeTag1); 27 28 29 UF_terminate();