The PWF file contains a number of spot ground elevations and a list of how these elevations are connected as triangles to form a solid terrain profile. The file was original created to allow a triangulated surface to be exchanged between the PDS and MicroDrainage design packages commonly used in the UK.
The file format is as follows:
[Section 1 - FileList] filename filename ...etc
[Section 2 - Vertices] Vertex Number, Easting (m), Northing (m), Elevation (m) Vertex Number, Easting (m), Northing (m), Elevation (m) ...etc
[Section 3 - Triangles] Vertex1, Vertex2, Vertex3, ModelNo, Color Vertex1, Vertex2, Vertex3, ModelNo, Color ...etc
[Section 4 - Zone Descriptions] Index, Name, PAF, Surface Index, Name, PAF, Surface ...etc
Section 1 contains a list of SWS files that are associated with this site.
Section 2 is a list of spot Elevations (vertices). These should be consecutively numbered from 1 to n.
Section 3 is a list of triangles. Each triangle connects 3 vertices and should list the vertex number from the previous section. Model No is used to split the terrain into separate ‘chunks’. Positive Models are considered to be undeveloped terrain. These triangles can be edited within Simulation A.P.T. Negative Models represent terrain features such as roads. These will be locked. For a basic undeveloped ground model all Model Numbers can be set to 0.
Color is an AutoCAD color palette index or RGB value in hex. Specify either an integer in the range 0-255 or an RGB value formatted to #rrggbb. This is the color the triangle will be drawn in. Color is ignored for triangles with a positive Model Number.
Section 4 lists name and associated information for each of the model numbers used.