hexagon logo

Generic line from 2 generic points

Hi,
How would you construct a generic line from 2 generic points, correctly oriented ? (from point 1 to point 2)


I'm scanning an hexagonal part to find the closest point to its centre.

AFFECTER/V1=SCN2.HIT[1..SCN2.NUMHITS].XYZ*MPOINT(1,1,0)
AFFECTER/V2=MININDEX(SQRT(DOT(V1,V1)))
AFFECTER/V3=SCN2.HIT[V2].XYZ => generic point 2
AFFECTER/V4=SCN2.XYZ*MPOINT(0,0,1) => generic point 1 (center)
AFFECTER/VECT_1=UNIT(V3-V4) => I tried UNIT(V4-V3) but there is no incidence ???????​
Parents


  • The only issue is the following FACE1_1 element, I had set predefined theoritical values for X,Y,Z, but it keeps replacing its coordinates when I change the hexagonal part position.
    Any idea why ? ​


    Maybe because the alignment changes.
    Assign theo values (as a mpoint for example), the use Vxx.X,Vx.Y and Vxx.Z as theo and target values. (also for IJK !)
Reply


  • The only issue is the following FACE1_1 element, I had set predefined theoritical values for X,Y,Z, but it keeps replacing its coordinates when I change the hexagonal part position.
    Any idea why ? ​


    Maybe because the alignment changes.
    Assign theo values (as a mpoint for example), the use Vxx.X,Vx.Y and Vxx.Z as theo and target values. (also for IJK !)
Children
No Data