现在我们要测量一个圆,但是这个圆又不完整,我想只能通过打点测量然后再拟合成圆,这程序如何编,点的各数和我打点的区域(对应的圆心角)要可以自己控制 。
RationalDMIS 2020 测圆_拟合
1、先测量一个端面找正。

      2、手动提示用户取一个起始点、一个终止点,总共的点数量。

3、变量取得点的数量,根据两点范围点,均分计算点的理论坐标和向量。

4、依次测量3部定义的理论点,然后拟合。

如果圆弧的角度很大,可以当作圆弧来测量,从2步之后,定义一个理论圆弧,然后改为AUTO模式,
MEAS/ARC,F(ARC1),n   其中n2步中的数量。 
MODE/MAN
F(PLN1) = FEAT/PLANE,CART, 65.263104, 53.968087, 0.000000, 0.000000,$
0.000000, 1.000000
$$ Measurement points are created through actual points
MEAS/PLANE, F(PLN1), 4
PTMEAS/CART, 119.929222, 107.846138, 0.000000, 0.000000, 0.000000, 1.000000
PTMEAS/CART, 11.224411, 94.215897, 0.000000, 0.000000, 0.000000, 1.000000
PTMEAS/CART, 4.293833, 4.951475, 0.000000, 0.000000, 0.000000, 1.000000
PTMEAS/CART, 125.604950, 8.858838, 0.000000, 0.000000, 0.000000, 1.000000
ENDMES
OUTPUT/FA(PLN1), TA(XCTL), TA(YCTL), TA(ZCTL)
D(CRD1) = DATSET/FA(PLN1), ZDIR
D(CRD1) = TRANS/ZORIG, FA(PLN1)
F(ARC1) = FEAT/ARC,INNER,CART, 0,60,0, 0,0,1, 25, 0.0, 180, 0,-1,0
$$ Measurement points are created through nominal points
MEAS/ARC, F(ARC1), 6
GOTO/CART, 125.604950, 8.858838, 21.000000
GOTO/CART, 1.259244, 39.037789, 21.000000
GOTO/CART, 1.259244, 39.037789, 22.000000
PTMEAS/CART, 1.499100, 35.044987, 0.000000, -0.060000, 0.998198, 0.000000
GOTO/CART, 7.440179, 40.362186, 0.000000
PTMEAS/CART, 15.413068, 40.316572, 0.000000, -0.616527, 0.787334, 0.000000
GOTO/CART, 17.280680, 48.067770, 0.000000
PTMEAS/CART, 23.867404, 52.560441, 0.000000, -0.954691, 0.297597, 0.000000
GOTO/CART, 21.000000, 60.000000, 0.000000
PTMEAS/CART, 23.867404, 67.439559, 0.000000, -0.954691, -0.297597, -0.000000
GOTO/CART, 17.280680, 71.932230, 0.000000
PTMEAS/CART, 15.413068, 79.683428, 0.000000, -0.616527, -0.787334, -0.000000
GOTO/CART, 7.440179, 79.637814, 0.000000
PTMEAS/CART, 1.499100, 84.955013, 0.000000, -0.060000, -0.998198, -0.000000
GOTO/CART, 1.259244, 80.962211, 22.000000
ENDMES
OUTPUT/FA(ARC1), TA(XCTL), TA(YCTL), TA(ZCTL), TA(DRADIUS)

RationalDMIS 2020 测圆_拟合_02
RationalDMIS 2020 测圆_拟合_03