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
  • at the rescue !
    ASSIGN/SURFACE=SUM(SQRT(DOT(V5,V5))*SQRT(DOT(V6,V6))*SIN( DEG2RAD(ANGLEBETWEEN(V5,V6))))/2 !!!!!!!

    V4 is the centroid of the scan, V5 and V6 are 2 arrays of vectors between hits and the centroid.
    SQRT(DOT(V5,V5)) is an array of length of vectors, same for V6.

    The norm of a cross product is also the area of the parallelogram formed by both vectors, and its (length of V5)*(length of V6)*(sin of anglre between V5 and V6) (math definition)

    Thanks a lot Vinni !!!!!
    (CTRL + C ; CTRL + V is sometimes too easy Disappointed )
  • : Just a precision, sum (parallelograms areas)/2 = sum (parallelograms areas/2), so the calculation gives the sum of triangles areas...
Reply Children
No Data