Skip to content

Writes an ASCII STL file given a grid of height data in ASCII format from Ordinance Survey.

License

Notifications You must be signed in to change notification settings

samuelwestlake/STL-Writer-for-Terrain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

STL-Writer-for-Terrain

Writes an ASCII STL file given a grid of height data in ASCII format from Ordinance Survey.
Written to convert OS terrain data into a mesh to conduct wind simulations over terrain.

For each point in the dataset, two triangular surfaces are generated using the three nearest lower and right-hand neighbours.

The script assumes that the given ASCII file contains 5 header rows which contain:

  • ncols
  • nrows
  • xllcorner
  • yllcorner
  • cellsize

xllcorner and yllcorner correspond to the coordinate of the lowest left hand data point.
cellsize corrensonds to the distance between data points.

About

Writes an ASCII STL file given a grid of height data in ASCII format from Ordinance Survey.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages