hexagon logo

Construction Point ....

Hi all !
First of all sorry for my english - it's basic.....


I have little problem with construct point between theoretical circle and scan fragment. When i try make point PC-DMIS make him inside the circle, i wanna have point on the intersection of the diameter with the scan. Thanks for help in advance. See attachment

Attached Files
Parents
  • You can calculate the polar radius of each hit of the scan (origin on the circle first - level z)
    ASSIGN/V1=SQRT(DOT(SCN1.HIT[1..SCN1.NUMHTS].XYZ *MPOINT(1,1,0) -CIRC1.XYZ*MPOINT(1,1,0),SCN1.HIT[1..SCN1.NUMHTS].XYZ *MPOINT(1,1,0) -CIRC1.XYZ*MPOINT(1,1,0)))
    Then, calculate which hits are the closest to the circle.
    ASSIGN/V2=MININDICES(ABS(V1-CIRC1.R))
    Create a feature set with some hits (4 for example)
    SCN1.HIT[V2[1]],SCN1.HIT[V2[2]],SCN1.HIT[V2[3]],SCN1.HIT[V2[4]]
    Create a line from the feature set, and create a pierce point between the line and the circle.
    If the point is on the wrong side, reverse the line.
    Maybe you will have to project the line on the plane containing the circle.
    You have to select pierce point, not intersect point.

    Happy week-end, all !
Reply
  • You can calculate the polar radius of each hit of the scan (origin on the circle first - level z)
    ASSIGN/V1=SQRT(DOT(SCN1.HIT[1..SCN1.NUMHTS].XYZ *MPOINT(1,1,0) -CIRC1.XYZ*MPOINT(1,1,0),SCN1.HIT[1..SCN1.NUMHTS].XYZ *MPOINT(1,1,0) -CIRC1.XYZ*MPOINT(1,1,0)))
    Then, calculate which hits are the closest to the circle.
    ASSIGN/V2=MININDICES(ABS(V1-CIRC1.R))
    Create a feature set with some hits (4 for example)
    SCN1.HIT[V2[1]],SCN1.HIT[V2[2]],SCN1.HIT[V2[3]],SCN1.HIT[V2[4]]
    Create a line from the feature set, and create a pierce point between the line and the circle.
    If the point is on the wrong side, reverse the line.
    Maybe you will have to project the line on the plane containing the circle.
    You have to select pierce point, not intersect point.

    Happy week-end, all !
Children
No Data