|
TNTmips Downloads Menu

|
addline.sml
#use with cb_wells to connect the dots
clear();
vector vect1, vect2;
class Georef georef;
GetInputVector(vect1);
GetOutputVector(vect2);
VectorToolkitInit(vect2);
numeric numpoints = vect1.$Info.NumPoints;
array numeric x[numpoints], y[numpoints];
numeric i;
for i = 1 to numpoints
{
print(vect1.point.Internal[@i].ElemNum);
x[i] = vect1.point.Internal[@i].x;
y[i] = vect1.point.Internal[@i].y;
print(x[i], ",", y[i]);
}
x[numpoints] = x[1];
y[numpoints] = y[1];
georef = GetLastUsedGeorefObject(vect1);
CopyGeorefToObject(vect2, georef);
VectorAddLine(vect2, numpoints, x, y);
VectorValidate(vect2);
CloseVector(vect1);
CloseVector(vect2);
©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
| |