@@ -0,0 +1,1885 @@
+#!/usr/bin/env python%0A%0Aimport vtk%0Aimport random%0A%0Adef main():%0A%0A    colors = vtk.vtkNamedColors()%0A    # Create points on an XY grid with random Z coordinate%0A    points = vtk.vtkPoints()%0A    %0A    for x in range (0, 10):%0A        for y in range (0, 10): %0A           points.InsertNextPoint(x, y, random.uniform(0.0, 3.0))%0A      %0A    %0A    # Add the grid points to a polydata object%0A    polydata = vtk.vtkPolyData()%0A    polydata.SetPoints(points)%0A    %0A    glyphFilter = vtk.vtkVertexGlyphFilter()%0A    glyphFilter.SetInputData(polydata)%0A    glyphFilter.Update()%0A    %0A    # Create a mapper and actor%0A    pointsMapper = vtk.vtkPolyDataMapper()%0A    pointsMapper.SetInputConnection(glyphFilter.GetOutputPort())%0A    %0A    pointsActor = vtk.vtkActor()%0A    pointsActor.SetMapper(pointsMapper)%0A    pointsActor.GetProperty().SetPointSize(3)%0A    pointsActor.GetProperty().SetColor(colors.GetColor3d(%22Red%22))%0A    %0A    # Triangulate the grid points%0A    delaunay = vtk.vtkDelaunay2D()%0A    delaunay.SetInputData(polydata)%0A    delaunay.Update()%0A    %0A    # Create a mapper and actor%0A    triangulatedMapper = vtk.vtkPolyDataMapper()%0A    triangulatedMapper.SetInputConnection(delaunay.GetOutputPort())%0A    %0A    triangulatedActor = vtk.vtkActor()%0A    triangulatedActor.SetMapper(triangulatedMapper)%0A    %0A    # Create a renderer, render window, and interactor%0A    renderer = vtk.vtkRenderer()%0A    renderWindow = vtk.vtkRenderWindow()%0A    renderWindow.AddRenderer(renderer)%0A    renderWindowInteractor = vtk.vtkRenderWindowInteractor()%0A    renderWindowInteractor.SetRenderWindow(renderWindow)%0A    %0A    # Add the actor to the scene%0A    renderer.AddActor(pointsActor)%0A    renderer.AddActor(triangulatedActor)%0A    renderer.SetBackground(colors.GetColor3d(%22Green%22)) # Background color green%0A    %0A    # Render and interact%0A    renderWindow.Render()%0A    renderWindowInteractor.Start()%0A%0Aif __name__ == '__main__':%0A    main()%0A

Create TriangulateTerrainMap.py