hexagon logo

Measuring the perimeter of an organic shape

I need to measure the perimeter of a shape that is a combination of an ellipse and a rounded slot accurately on the CMM. If I try measuring the feature as an ellipse or rounded slot, it will best fit the points, which will not give me the dimension I need to capture.
Parents
  • Not sure to understand, you're trying to measure the length of the perimeter ?
    With a scanning head, scan the perimeter with a high density of hits (linear closed scan).
    Then :
    ASSIGN/V1=SCN1.HIT[1..(SCN1.NUMHITS-1)].XYZ
    ASSIGN/V2=SCN1.HIT[2..SCN1.NUMHITS].XYZ
    ASSIGN/V3=SQRT(DOT(V2-V1,V2-V1))
    ASSIGN/PERIMETER=SUM(V3)



    The code above is only the distance between the first and the last hit.
    I forgot the distance between the last and the first Disappointed !
    The full length around the shape is :

    ASSIGN/V1=SCN1.HIT[1..(SCN1.NUMHITS-1)].XYZ
    ASSIGN/V2=SCN1.HIT[2..SCN1.NUMHITS].XYZ
    ASSIGN/V3=SQRT(DOT(V2-V1,V2-V1))
    ASSIGN/V4=SCN1.HIT[1].XYZ
    ​​​​​​​ASSIGN/V5=SCN1.HIT[NUMHITS].XYZ
    ASSIGN/V6=SQRT(DOT(V4-V5,V4-V5))
    ASSIGN/PERIMETER=SUM(V3)+V6


Reply
  • Not sure to understand, you're trying to measure the length of the perimeter ?
    With a scanning head, scan the perimeter with a high density of hits (linear closed scan).
    Then :
    ASSIGN/V1=SCN1.HIT[1..(SCN1.NUMHITS-1)].XYZ
    ASSIGN/V2=SCN1.HIT[2..SCN1.NUMHITS].XYZ
    ASSIGN/V3=SQRT(DOT(V2-V1,V2-V1))
    ASSIGN/PERIMETER=SUM(V3)



    The code above is only the distance between the first and the last hit.
    I forgot the distance between the last and the first Disappointed !
    The full length around the shape is :

    ASSIGN/V1=SCN1.HIT[1..(SCN1.NUMHITS-1)].XYZ
    ASSIGN/V2=SCN1.HIT[2..SCN1.NUMHITS].XYZ
    ASSIGN/V3=SQRT(DOT(V2-V1,V2-V1))
    ASSIGN/V4=SCN1.HIT[1].XYZ
    ​​​​​​​ASSIGN/V5=SCN1.HIT[NUMHITS].XYZ
    ASSIGN/V6=SQRT(DOT(V4-V5,V4-V5))
    ASSIGN/PERIMETER=SUM(V3)+V6


Children
No Data