hexagon logo

.ALL extension

Check this out. I was pleasantly surprised that PCDMIS was able to crunch this. Notice that the formula refers to four different feature extensions but only one extension is declared for each argument.

ASSIGN/2DDISTDEV = FUNCTION((FEATURE1,FEATURE2),ABS(SQRT((FEATURE1.TX-FEATURE2.TX)^2+(FEATURE1.TY-FEATURE2.TY)^2)-SQRT((FEATURE1.X-FEATURE2.X)^2+(FEATURE1.Y-FEATURE2.Y)^2)))
ASSIGN/DIST_1 = 2DDISTDEV(CYL1.ALL,CYL2.ALL)
ASSIGN/DIST_2 = 2DDISTDEV(CYL2.ALL,CYL3.ALL)
ASSIGN/DIST_3 = 2DDISTDEV(CYL1.ALL,CYL3.ALL)
Parents
  • The result is essentially the same as the .DEV derived from a 2d distance measurement.

    The .ALL extension recalls all of the features information, thereby greatly simplifying the code. Without it the code might look like this:

    ASSIGN/2DDISTDEV = FUNCTION((FEATURE1TX,FEATURE2TX,FEATURE1TY,FEATURE2TY,FEATURE1X,FEATURE2X,FEATURE1Y,FEATURE2Y),ABS(SQRT((FEATURE1.TX-FEATURE2.TX)^2+(FEATURE1.TY-FEATURE2.TY)^2)-SQRT((FEATURE1.X-FEATURE2.X)^2+(FEATURE1.Y-FEATURE2.Y)^2)))
    ASSIGN/DIST_1 = 2DDISTDEV(CYL1.TX,CYL2.TX,CYL1.TY,CYL2.TY,CYL1.X,CYL2.X,CYL1.Y,CYL2.Y)
Reply
  • The result is essentially the same as the .DEV derived from a 2d distance measurement.

    The .ALL extension recalls all of the features information, thereby greatly simplifying the code. Without it the code might look like this:

    ASSIGN/2DDISTDEV = FUNCTION((FEATURE1TX,FEATURE2TX,FEATURE1TY,FEATURE2TY,FEATURE1X,FEATURE2X,FEATURE1Y,FEATURE2Y),ABS(SQRT((FEATURE1.TX-FEATURE2.TX)^2+(FEATURE1.TY-FEATURE2.TY)^2)-SQRT((FEATURE1.X-FEATURE2.X)^2+(FEATURE1.Y-FEATURE2.Y)^2)))
    ASSIGN/DIST_1 = 2DDISTDEV(CYL1.TX,CYL2.TX,CYL1.TY,CYL2.TY,CYL1.X,CYL2.X,CYL1.Y,CYL2.Y)
Children
No Data