hexagon logo

How to get the highest point from a set?

Hello all

I wonder whether pc-dmis has a function which will return a highest point from a set? For example:

Based on a certain alignment, I checked a surface with 4x4 points, I would get the highest Z value point. What should I do? 

Thanks

Parents
  • If you have 2021.2 I believe you can do Constructed Extreme points, but I recall you having an older version.

    First example here will put the points in order of highest to lowest by hit number. Easier to pull the point out and use it's XYZ data

    Second example will sort Highest to lowest with actual Z values present in variable.

    ASSIGN/V1=MAXINDICES(5CR.HITS.Z) for assorted array
    ASSIGN/V1=MAXINDEX(5CR.HITS.Z) for single max point
                    OR TRY
    ASSIGN/V1=SORTDOWN(5CR.HITS.Z)

    Added into generic point for extraction if you cannot use Extreme Point.

    FOR MAXINDICES ARRAY USE [VARIABLE[POSITION IN ARRAY]] 
    EXAMPLE ---> ARRAY(6, 7, 4, 3, 2, 1, 5) [V1[1]] = Point 6, Position 1 in Array
    
    F1         =GENERIC/POINT,DEPENDENT,CARTESIAN,$
                NOM/XYZ,<0,0,0>,$
                MEAS/XYZ,<5CR.HIT[V1[1]].X,5CR.HIT[V1[1]].Y,5CR.HIT[V1[1]].Z>,$
                NOM/IJK,<0,0,1>,$
                MEAS/IJK,<0,0,1>
                
    FOR MAXINDEX JUST USE [VARIABLE].X Y OR Z
    
    F1         =GENERIC/POINT,DEPENDENT,CARTESIAN,$
                NOM/XYZ,<0,0,0>,$
                MEAS/XYZ,<5CR.HIT[V1].X,5CR.HIT[V1].Y,5CR.HIT[V1].Z>,$
                NOM/IJK,<0,0,1>,$
                MEAS/IJK,<0,0,1>

  • MAXINDEX(SCN1.HIT[1..SCN1.NUMHITS].Z) works also

Reply Children