Minimum and maximum Points on a Feature-Plane

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Minimum and maximum Points on a Feature-Plane

    Afternoon all...Is there a way to generate the minimum and maximum points from the points probed on a plane?

    Ron

  • #2
    try this

    We originally used this solution for a scan set, but I suspect it will also work for a plane feature if you substitute the correct feature names. TRy it out and let us know.



    Here is some code which should do the same thing -

    ASSIGN/MAXz = MAX(SCN1.HIT[1..SCN1.NUMHITS].z)
    ASSIGN/MAXYPT = MAXINDEX(SCN1.HIT[1..SCN1.NUMHITS].z)
    ASSIGN/MINz = MIN(SCN1.HIT[1..SCN1.NUMHITS].z)
    ASSIGN/MINYPT = MININDEX(SCN1.HIT[1..SCN1.NUMHITS].z)
    COMMENT/REPT,
    ,MAXz
    ,MAXYPT
    ,MINz
    ,MINYPT

    Comment


    • #3
      Originally posted by Don Ruggieri View Post
      We originally used this solution for a scan set, but I suspect it will also work for a plane feature if you substitute the correct feature names. TRy it out and let us know.



      Here is some code which should do the same thing -

      ASSIGN/MAXz = MAX(SCN1.HIT[1..SCN1.NUMHITS].z)
      ASSIGN/MAXYPT = MAXINDEX(SCN1.HIT[1..SCN1.NUMHITS].z)
      ASSIGN/MINz = MIN(SCN1.HIT[1..SCN1.NUMHITS].z)
      ASSIGN/MINYPT = MININDEX(SCN1.HIT[1..SCN1.NUMHITS].z)
      COMMENT/REPT,
      ,MAXz
      ,MAXYPT
      ,MINz
      ,MINYPT
      Thanks Don. I am leaving the office now for some fresh air. I will be back later tonight to give it a try. I wll let you know the results...Also, how would I convert the point probed in the plane feature to sets. If that works for sure I would apply the sets to it instead.

      Ron

      Comment


      • #4
        Originally posted by PCDMISRON View Post
        Also, how would I convert the point probed in the plane feature to sets. If that works for sure I would apply the sets to it instead.

        Ron
        I'm not sure what you mean. I think there is no need to convert anything to sets, it might work as it is. I have not tried it yet, I will see if I can try some things today, but it should work as a plane feature, finding the min and max. You just have to use the correct feature name syntax in the assignment statements where I have SCN1.

        Comment


        • #5
          it works for me

          I tried it using a plane feature, and it works fine as is. Just use the appropriate feature name, as shown in example below -

          PLN2 =FEAT/PLANE,CARTESIAN,TRIANGLE
          THEO/<-88.901,1.113,11.915>,<-0.0695989,-0.0318903,0.9970652>
          ACTL/<-88.861,1.106,11.912>,<-0.0695988,-0.0319105,0.9970646>
          MEAS/PLANE,5
          MOVE/CLEARPLANE
          HIT/BASIC,NORMAL,<-85.23,-23.661,12.458>,<-0.0695989,-0.0318903,0.9970652>,<-85.194,-23.574,12.454>,USE THEO = YES
          HIT/BASIC,NORMAL,<-63.505,-1.591,14.068>,<-0.0695989,-0.0318903,0.9970652>,<-63.544,-1.617,14.062>,USE THEO = YES
          HIT/BASIC,NORMAL,<-85.384,24.811,13.166>,<-0.0695989,-0.0318903,0.9970652>,<-85.321,24.738,13.159>,USE THEO = YES
          HIT/BASIC,NORMAL,<-113.757,7.533,12.242>,<-0.0695989,-0.0318903,0.9970652>,<-113.682,7.514,12.241>,USE THEO = YES
          HIT/BASIC,NORMAL,<-96.628,-1.527,7.642>,<-0.0695989,-0.0318903,0.9970652>,<-96.564,-1.531,7.642>,USE THEO = YES
          ENDMEAS/


          ASSIGN/MAXZ = MAX(PLN2.HIT[1..PLN2.NUMHITS].Z)
          ASSIGN/MAXZPT = MAXINDEX(PLN2.HIT[1..PLN2.NUMHITS].Z)
          ASSIGN/MINZ = MIN(PLN2.HIT[1..PLN2.NUMHITS].Z)
          ASSIGN/MINZPT = MININDEX(PLN2.HIT[1..PLN2.NUMHITS].Z)
          COMMENT/OPER,NO,MAXZ
          ,MAXZPT
          ,MINZ
          ,MINZPT

          Comment


          • #6
            Originally posted by Don Ruggieri View Post
            I tried it using a plane feature, and it works fine as is. Just use the appropriate feature name, as shown in example below -

            PLN2 =FEAT/PLANE,CARTESIAN,TRIANGLE
            THEO/<-88.901,1.113,11.915>,<-0.0695989,-0.0318903,0.9970652>
            ACTL/<-88.861,1.106,11.912>,<-0.0695988,-0.0319105,0.9970646>
            MEAS/PLANE,5
            MOVE/CLEARPLANE
            HIT/BASIC,NORMAL,<-85.23,-23.661,12.458>,<-0.0695989,-0.0318903,0.9970652>,<-85.194,-23.574,12.454>,USE THEO = YES
            HIT/BASIC,NORMAL,<-63.505,-1.591,14.068>,<-0.0695989,-0.0318903,0.9970652>,<-63.544,-1.617,14.062>,USE THEO = YES
            HIT/BASIC,NORMAL,<-85.384,24.811,13.166>,<-0.0695989,-0.0318903,0.9970652>,<-85.321,24.738,13.159>,USE THEO = YES
            HIT/BASIC,NORMAL,<-113.757,7.533,12.242>,<-0.0695989,-0.0318903,0.9970652>,<-113.682,7.514,12.241>,USE THEO = YES
            HIT/BASIC,NORMAL,<-96.628,-1.527,7.642>,<-0.0695989,-0.0318903,0.9970652>,<-96.564,-1.531,7.642>,USE THEO = YES
            ENDMEAS/


            ASSIGN/MAXZ = MAX(PLN2.HIT[1..PLN2.NUMHITS].Z)
            ASSIGN/MAXZPT = MAXINDEX(PLN2.HIT[1..PLN2.NUMHITS].Z)
            ASSIGN/MINZ = MIN(PLN2.HIT[1..PLN2.NUMHITS].Z)
            ASSIGN/MINZPT = MININDEX(PLN2.HIT[1..PLN2.NUMHITS].Z)
            COMMENT/OPER,NO,MAXZ
            ,MAXZPT
            ,MINZ
            ,MINZPT
            Thanks Mr. Ruggieri. I was able to apply the original code with with the appropriate substitutions last night and as you stated, it worked fine.

            Thanks again!!
            Ron

            Comment

            Related Topics

            Collapse

            Working...
            X