hexagon logo

Area Calculation from points

I am measuring a feature that is somewhat round but has lot of jagged edges. I want to use all of the areas to calculate the area. I am measuring this using hundreds of points. Anyone have any ideas ? I have searched for answers but can't seem to come up with any.
Parents
  • I'm not at the cmm.
    I would try this for the external scan :
    ASSIGN/V1=SUM(SCN1.HIT[1..SCN1.NUMHITS].X)/SCN1.NUMHITS
    ASSIGN/V2=SUM(SCN1.HIT[1..SCN1.NUMHITS].Y)/SCN1.NUMHITS
    ASSIGN/V3=SUM(SCN1.HIT[1..SCN1.NUMHITS].Z)/SCN1.NUMHITS
    ASSIGN/V4=MPOINT(V1,V2,V3)

    ASSIGN/V5=SCN1.HIT[1..(SCN1.NUMHITS-1)].XYZ-V4
    ASSIGN/V6=SCN1.HIT[2..SCN1.NUMHITS].XYZ-V4

    ASSIGN/SURFACE=SUM(SQRT(DOT(V5,V5))*SQRT(DOT(V6,V6))*SIN(DEG2RAD(ANGLEBETWEEN(V5,V6))))/2

    If it works, you do the same for others scans, then calculate the area...
    (I can't check if it works now...)
Reply
  • I'm not at the cmm.
    I would try this for the external scan :
    ASSIGN/V1=SUM(SCN1.HIT[1..SCN1.NUMHITS].X)/SCN1.NUMHITS
    ASSIGN/V2=SUM(SCN1.HIT[1..SCN1.NUMHITS].Y)/SCN1.NUMHITS
    ASSIGN/V3=SUM(SCN1.HIT[1..SCN1.NUMHITS].Z)/SCN1.NUMHITS
    ASSIGN/V4=MPOINT(V1,V2,V3)

    ASSIGN/V5=SCN1.HIT[1..(SCN1.NUMHITS-1)].XYZ-V4
    ASSIGN/V6=SCN1.HIT[2..SCN1.NUMHITS].XYZ-V4

    ASSIGN/SURFACE=SUM(SQRT(DOT(V5,V5))*SQRT(DOT(V6,V6))*SIN(DEG2RAD(ANGLEBETWEEN(V5,V6))))/2

    If it works, you do the same for others scans, then calculate the area...
    (I can't check if it works now...)
Children
No Data