1//设置single_dialog选择过滤2staticintinit_proc(UF_UI_selection_p_tselect,void*user_data)3{4intnum_triples =1;5//面6UF_UI_mask_t mask_triples[] = {UF_face_type,0,0};7/*enable only lines and edges*/8if((UF_UI_set_sel_mask(select,UF_UI_SEL_MASK_CLEAR_AND_ENABLE_SPECIFIC,num...
10 //确定两个向量在指定的公差内是否平行(三维向量) 11 const double vec1[3] = { 0.0, 0.0, 1.0 };//向量1 12 const double vec2[3] = { 0.0, 0.0, 1.0 };//向量2 13 double tolerance = 0.001;//公差 14 int is_parallel = 0;//0向量不平行1向量平行 15 UF_VEC3_is_parallel(vec1,...
{0.0}; 50 double wcs_vec_x[3]={0.0}; 51 double wcs_vec_y[3]={0.0}; 52 double wcs_vec_z[3]={0.0}; 53 double tolerance=0.00001; 54 //is_parallel 55 int x_parallel=0; 56 int y_parallel=0; 57 int z_parallel=0; 58 59 //获取wcs坐标系然后得到他的矩阵 60 UF_CSYS_ask_...
UF_VEC3_is_parallel UF_VEC3_is_perpendicular UF_VEC3_is_zero UF_VEC3_linear_comb UF_VEC3_mag UF_VEC3_midpt UF_VEC3_negate UF_VEC3_scale UF_VEC3_sub从一个向量中减去另一个向量 UF_VEC3_triple UF_VEC3_unitize单元化一个向量。单位向量,向量长度设为1 UF_VEC3_vec2 UF_VEC3_vec4 ...
对于NX二次开发新手在使用UFUN的向量函数时,对于有些函数需要输入公差,比如:UF_VEC3_is_equal、UF_VEC3_is_parallel、UF_VEC3_is_perpendicular等,公差参数类型是double,但是公差的单位类型是什么?数学含义是什么?有些人会有些疑惑。 以下是我的验证,不对的地方还请大神指导。比如你判断两个向量是否垂直,设置公...
the interpolation is done. Notice that the corresponding slope type must be UF_CURVE_SLOPE_AUTO at the point. . UF_CURVE_CRVATR_VEC signifies that the curvature is defined by the user-specified defining curvature vector, whose magnitude and direction affect the shape of the curve. 3....
int * is_parallel) 函数说明:确定是否向量是输入公差范围内平行。如果正弦的VEC 1及VEC 2之间的角度小于公差然后则返回TRUE。否则返回False。为了得到一个角度的X度公差预期的误差就是罪(xDEGRA)。 函数参数:第1个参数为输入:输入const double 双精度类型的参数,参数的变量格式为vec1 [ 3 ],三维矢量 第2个参...
1 //设置class_dialog选择过滤 2 static int init_proc(UF_UI_selection_p_t select,void* user_data) 3 { 4 //过滤类别的个数 5 int num_triples = 1; 6 //面 7 UF_UI_mask_t