New Vision Algorithm

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.
    Last edited by KyleB; 03-14-2019, 04:34 PM.

  • #2
    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.

    Comment


    • #3
      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)

      Comment

      Related Topics

      Collapse

      Working...
      X