hexagon logo

Extracting Values from 2D Contour

I'm looking to extract the maximum Z value and maximum ZX value from a scanned 2D curve. Attached is a screengrab of the curve. In this case, it would basically be the end-to-end points of the top line in the X direction. I've tried using FLEX2D, but get an error message 'Value too small (possibly two equal points) !' What's the best way to go about this ?

Attached Files
Parents
  • The ZMax you are looking for must be from the radius-corrected curve:

    FXTREM (NAM=(P1,P2,P3,P4,P5,ZMax), OBJ=T1_SCAN, TYP=CSY)


    The max. in ZX is related to the radial distance of each point to zero, by the looks, so you need to do some programming to get the value. You must also be careful about the scan length, as you may find the last point in the scan using this method, as it is the most distant point from the origin. Try:

    DFNELE (NAM=Zero, TYP=POI, CSY=Main_Datum, DEL=*)
    FGEX2D (NAM=T1_SCAN, MIN=P1, MAX=ZXMax, A_O=ZX, REF=Zero)



Reply
  • The ZMax you are looking for must be from the radius-corrected curve:

    FXTREM (NAM=(P1,P2,P3,P4,P5,ZMax), OBJ=T1_SCAN, TYP=CSY)


    The max. in ZX is related to the radial distance of each point to zero, by the looks, so you need to do some programming to get the value. You must also be careful about the scan length, as you may find the last point in the scan using this method, as it is the most distant point from the origin. Try:

    DFNELE (NAM=Zero, TYP=POI, CSY=Main_Datum, DEL=*)
    FGEX2D (NAM=T1_SCAN, MIN=P1, MAX=ZXMax, A_O=ZX, REF=Zero)



Children
No Data