Copyright 2007 by gINT Software. All rights reserved worldwide.
GRA006.TXT
gINT Rules Code Add-In menus Samples - 006
Requires gINT version 8 or later. gINT Logs cannot run gINT Rules but can access the code or the Add-Ins manager. gINT Logs Plus and gINT Professional have full access to both.
NOTE: Code samples are provided free of charge and as-is. gINT Software makes no claim or warranty as to the accuracy of the samples. It is the responsibility of the user to ensure that the code performs as it should. Comments, suggestions, and error reports are appreciated.
Description
===========
This Add-In determines which area or areas a specific coordinate resides. This could be used to determine which classification zone CPT results reside. The code illustrates the use of the gINT Rules method PointInsideAreaInit and property PointInsideArea.
Areas are defined by a two dimensional array that must be dimensioned (0 to 1, 0 to # vertices - 1) or (1, # vertices - 1) (0 is the default lower bound). The 0th position of the first dimension holds the X value of the vertex, the 2nd holds the Y value. The second dimension holds the vertex number. The area must have at least 4 vertices, and must close (1st and last vertex coordinates must be the same).
See the Drawings:Drawing Library page titled "GRA006 - POINT INSIDE AREA" for graphical representations of the areas and coordinates used in the sample code.
Revision History
================
05Feb2007:
Initial public upload
*************************************************
INCLUDED FILES:
GRA006.GLB:
Add-Ins: GRA006 - Points In Areas
gINT Rules code modules:
GRA006: Main
PointsInAreas
GRA006 COMMON PROCEDURES: WhichPointsInArea
Drawing Library: GRA006 - POINT INSIDE AREA
*************************************************
INSTALLATION PROCEDURE:
Copy the files wherever you prefer. To see the gINT Rules Add-In and code module you must either merge the GLB into your library (Utilities:Lib Merge/Copy) or change to the included library (File:Change Library).
*************************************************
SPECIAL NOTES:
See the DESCRIPTION section above for detailed usage instructions.
*************************************************