NX二次开发-UFUN拉伸函数UF_MODL_create_extruded
NX9+VS2012
//NX二次开发中常用拉伸函数为UF_MODL_create_extruded2,但是此函数不能拉伸片体,
//想要拉伸片体用函数UF_MODL_create_extruded。
#include <uf.h>
#include <uf_curve.h>
#include <uf_modl.h>
#include <uf_obj.h>
UF_initialize();
//创建直线1
UF_CURVE_line_t LineCoords1;
LineCoords1.start_point[0] = 0.0;
LineCoords1.start_point[1] = 0.0;
LineCoords1.start_point[2] = 0.0;
LineCoords1.end_point[0] = 0.0;
LineCoords1.end_point[1] = 100.0;
LineCoords1.end_point[2] = 0.0;
tag_t LineTag[4];
UF_CURVE_create_line(&LineCoords1, &LineTag[0]);
//创建直线2
UF_CURVE_line_t LineCoords2;
LineCoords2.start_point[0] = 0.0;
LineCoords2.start_point[1] = 100.0;
LineCoords2.start_point[2] = 0.0;
LineCoords2.end_point[0] = 100.0;
LineCoords2.end_point[1] = 100.0;
LineCoords2.end_point[2] = 0.0;
UF_CURVE_create_line(&LineCoords2, &LineTag[1]);
//创建直线3
UF_CURVE_line_t LineCoords3;
Li