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
  • So it appears you have a measured scan.
    I'd align/origin to the center to the scan (presuming you have a means to consistently control rotation)
    construct a generic plane and construct intersect points between the scan and the plane, then again between the plane and the scan.
    construct a line between the two points.
    I have the same scenario, and i do this (well i actually just take 2-hit lines on each face, not a scan) 3x to determine my hexagon-shaped bore with a max inscribed diameter specification.
Reply
  • So it appears you have a measured scan.
    I'd align/origin to the center to the scan (presuming you have a means to consistently control rotation)
    construct a generic plane and construct intersect points between the scan and the plane, then again between the plane and the scan.
    construct a line between the two points.
    I have the same scenario, and i do this (well i actually just take 2-hit lines on each face, not a scan) 3x to determine my hexagon-shaped bore with a max inscribed diameter specification.
Children
No Data