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
  • , can you post the points coordinates, please ?
    I would like to play with Slight smile


    Those are on front (YMINUS) of the Hexagon part, easier test case PNT2-PNT5 (just a slight angle of the plane, centroid Y=0, high point -1, tangent plane touching two points), harder (balancing on high point Y=-2, tangent plane touching just this point) when including PNT6.

    PNT2       =FEAT/CONTACT/VECTOR POINT/DEFAULT,CARTESIAN
                THEO/<38,0,-6>,<0,-1,0>
                ACTL/<38,-1,-6>,<0,-1,0>
                TARG/<38,-1,-6>,<0,-1,0>
    
    PNT3       =FEAT/CONTACT/VECTOR POINT/DEFAULT,CARTESIAN
                THEO/<38,0,-29>,<0,-1,0>
                ACTL/<38,1,-29>,<0,-1,0>
                TARG/<38,1,-29>,<0,-1,0>
    
    PNT4       =FEAT/CONTACT/VECTOR POINT/DEFAULT,CARTESIAN
                THEO/<180,0,-6>,<0,-1,0>
                ACTL/<180,-1,-6>,<0,-1,0>
                TARG/<180,-1,-6>,<0,-1,0>
    
    PNT5       =FEAT/CONTACT/VECTOR POINT/DEFAULT,CARTESIAN
                THEO/<180,0,-29>,<0,-1,0>
                ACTL/<180,1,-29>,<0,-1,0>
                TARG/<180,1,-29>,<0,-1,0>
    
    PNT6       =FEAT/CONTACT/VECTOR POINT/DEFAULT,CARTESIAN
                THEO/<115,0,-17>,<0,-1,0>
                ACTL/<115,-2,-17>,<0,-1,0>
                TARG/<115,-2,-17>,<0,-1,0>
    
    


    but I think there's a problem with the IJK of the projected points, at least in my way of using PROJ to WORKPLANE as this will give the workplane IJK to the projected points, with the effect that my method also may calculate a tangent plane on the wrong side Angry...
Reply
  • , can you post the points coordinates, please ?
    I would like to play with Slight smile


    Those are on front (YMINUS) of the Hexagon part, easier test case PNT2-PNT5 (just a slight angle of the plane, centroid Y=0, high point -1, tangent plane touching two points), harder (balancing on high point Y=-2, tangent plane touching just this point) when including PNT6.

    PNT2       =FEAT/CONTACT/VECTOR POINT/DEFAULT,CARTESIAN
                THEO/<38,0,-6>,<0,-1,0>
                ACTL/<38,-1,-6>,<0,-1,0>
                TARG/<38,-1,-6>,<0,-1,0>
    
    PNT3       =FEAT/CONTACT/VECTOR POINT/DEFAULT,CARTESIAN
                THEO/<38,0,-29>,<0,-1,0>
                ACTL/<38,1,-29>,<0,-1,0>
                TARG/<38,1,-29>,<0,-1,0>
    
    PNT4       =FEAT/CONTACT/VECTOR POINT/DEFAULT,CARTESIAN
                THEO/<180,0,-6>,<0,-1,0>
                ACTL/<180,-1,-6>,<0,-1,0>
                TARG/<180,-1,-6>,<0,-1,0>
    
    PNT5       =FEAT/CONTACT/VECTOR POINT/DEFAULT,CARTESIAN
                THEO/<180,0,-29>,<0,-1,0>
                ACTL/<180,1,-29>,<0,-1,0>
                TARG/<180,1,-29>,<0,-1,0>
    
    PNT6       =FEAT/CONTACT/VECTOR POINT/DEFAULT,CARTESIAN
                THEO/<115,0,-17>,<0,-1,0>
                ACTL/<115,-2,-17>,<0,-1,0>
                TARG/<115,-2,-17>,<0,-1,0>
    
    


    but I think there's a problem with the IJK of the projected points, at least in my way of using PROJ to WORKPLANE as this will give the workplane IJK to the projected points, with the effect that my method also may calculate a tangent plane on the wrong side Angry...
Children
No Data