trihole.sml

  Download

More scripts: TIN

Syntax Highlighing:

comments, key words, predefined symbols, class members & methods, functions & classes
            
# trihole.sml
clear();
tin Tout;
numeric triangle, numtriangles;
GetOutputTIN(Tout, "TINToolkit", "ComputeStandardAttributes");
# pick a triangle less than or equal
# to number of triangle
numtriangles = TINNumberTriangles(Tout);
triangle = floor(numtriangles / 2);
TINDeleteTriangleAndMakeHole(Tout, triangle);
print("triangle deleted ", triangle);