hexagon logo

New Vision Algorithm

https://hexagonmi.userecho.com/commu...maxlineminline

In reference to the above, I'm looking to start trying to make a hopefully temporary 'work-in' for this. Does any one know if there is a way to calculate T-Value of individual points of a Line? I want to index them into an array.

Any help is appreciated.

Perhaps this? Can't test ATM.

(dot(array(lin1.hit(1..lin1.numhits).xyz-lin1.txyz),lin1.tijk)

I then need to figure out how to re-associate that with the point index, then filter out the indexs accordingly.
  • Here it's not the dot product to use like this.
    You seach the distance to the line, so it's a double cross product.
    ASSIGN/V1=CROSS(CROSS(LIN1.HIT[1..LIN1.NUMHITS].XYZ-LIN1.SXYZ,LIN1.IJK),LIN1.IJK)
    ASSIGN/T_VAL=DOT((LIN1.HIT[1..LIN1.NUMHITS].XYZ-LIN1.SXYZ),V1)

    I'm not at the cmm to check, so I use SXYZ to use start point instead of centroid.
    I do it because the result of the cross product could change of direction from a side to another of the centroid.
  • This should help :
    ASSIGN/V1=CROSS(CROSS(LIN1.HIT[1..LIN1.NUMHITS].XYZ-LIN1.SXYZ,LIN1.IJK),LIN1.IJK)
    ASSIGN/T_VAL=DOT((LIN1.HIT[1..LIN1.NUMHITS].XYZ-LIN1.SXYZ),V1)