hexagon logo

Does anyone know an easy way to project all the points in a group to a plane?

I have a group of points (a plane for example) and I want to project them all to a plane (simplest case == WORKPLANE). Is there some smart way to do it all at once (a.k.a. "the JEFMAN way") or is it only possible with a loop? I haven't found anything yet...

The object of this is to create a secondary tangent plane perpendicular to the primary by the following method:

- measure the secondary plane
- project all points up/down to the primary (WORKPLANE)
- construct a tangent plane from the original plane points + the projected points (guaranteed to be perpendicular to the primary as that is our projection direction)

As a follow-up question: How can I use an ARRAY variable in the same way as .HIT[...] in the construction of a tangent plane?
Parents
  • Nice code, !
    I think you could :
    ASSIGN/VI=MININDICES(PLN4.HIT[1..PLN4.NUMHITS].Y
    ASSIGN/VI1=VI[1]
    ASSIGN/VI2=VI[2]
    then origin on PLN4.HIT[VI1] (so using XYZ) and rotate from PLN4.HIT[VI1] to PLN4.HIT[VI2] in A3.

    Just a thought : in ANG, why don't you use RAD2DEG, instead of 3.1415927/180 ?
    And why don't you use ACOS(-1) for Pi ? Slight smile
Reply
  • Nice code, !
    I think you could :
    ASSIGN/VI=MININDICES(PLN4.HIT[1..PLN4.NUMHITS].Y
    ASSIGN/VI1=VI[1]
    ASSIGN/VI2=VI[2]
    then origin on PLN4.HIT[VI1] (so using XYZ) and rotate from PLN4.HIT[VI1] to PLN4.HIT[VI2] in A3.

    Just a thought : in ANG, why don't you use RAD2DEG, instead of 3.1415927/180 ?
    And why don't you use ACOS(-1) for Pi ? Slight smile
Children
No Data