|
TNTmips Downloads Menu

|
adjpoly.sml
# adjpoly.sml
# reads the poly list of all adjacent polygons to a given polygon
# it only returns polygons that have common lines !!!
# not a single common node
clear();
class VECTOR V;
array numeric polylist[10]; # array to hold poly list
numeric numadjacent, polynum;
GetInputVector(V);
polynum = 150; # polynum = 150 works for cb_soils/CBSOILS_Light
numadjacent = GetVectorPolyAdjacentPolyList(V, polylist, polynum);
print("number of polygons adjacent to polygon:", polynum, " = ", numadjacent);
numeric i;
for i = 1 to numadjacent {
print(i, ":", polylist[i]);
}
CloseVector(V);
print("Done");
©MicroImages, Inc. 2013 Published in the United States of America
11th Floor - Sharp Tower, 206 South 13th Street, Lincoln NE 68508-2010 USA
Business & Sales: (402)477-9554 Support: (402)477-9562 Fax: (402)477-9559
Business info@microimages.com
Support support@microimages.com
Web webmaster@microimages.com
| |