购买与咨询 NX 二次开发视频教程,请联系微信号:13890821008 QQ号:85585969
函数结构:UF_CAM_ask_leastsq_sphere( double * * point_coords, int point_count, double tolerance, double sphere_center [ 3 ], double * sphere_radius) 函数说明:
描述:此实用程序函数计算圆心和半径最小二乘球为一组给定的点。
函数参数:
第1个参数为输入:
输入double * * 双精度类型的参数,参数的变量格式为point_coords,坐标点的数组球配合。 (3点计数值。)
第2个参数为输入:
输入int 整数型的参数,参数的变量格式为point_count, - 点数
第3个参数为输入:
输入double 双精度类型的参数,参数的变量格式为tolerance, - 距离公差
第4个参数为输出:
输出double 双精度类型的参数,参数的变量格式为sphere_center [ 3 ], - 球中心的坐标
第5个参数为输出:
输出double * 双精度类型的参数,参数的变量格式为sphere_radius, - 球半径