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 Reply Children
No Data