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( V1,V1))*SQRT(DOT( V2,V2))*SIN(DEG2RAD(ANGLEBETWEEN( V1,V2))))/2

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


    V1, V2, V3 and V4 are generating the centroid of the scan.

    V5 and V6 are setting up an overlapping of points, so that V5 uses HIT1 while V6 uses HIT2, and then V5 uses HIT2 while V6 uses HIT3, etc. But they don't seem to be in use. Shouldn't the red labels be some combo of V4, V5 and V6?

    SURFACE is supposed to be calculating the sums of the triangular areas? (I dunno, I got lost there. Square of the dot product's multiplied together multiplied by the sin of the angle between something ((V1,V2) doesn't make sense to me).
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( V1,V1))*SQRT(DOT( V2,V2))*SIN(DEG2RAD(ANGLEBETWEEN( V1,V2))))/2

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


    V1, V2, V3 and V4 are generating the centroid of the scan.

    V5 and V6 are setting up an overlapping of points, so that V5 uses HIT1 while V6 uses HIT2, and then V5 uses HIT2 while V6 uses HIT3, etc. But they don't seem to be in use. Shouldn't the red labels be some combo of V4, V5 and V6?

    SURFACE is supposed to be calculating the sums of the triangular areas? (I dunno, I got lost there. Square of the dot product's multiplied together multiplied by the sin of the angle between something ((V1,V2) doesn't make sense to me).
Children
No Data