Jump to content
TUFLOW Forum
tuflow support

SMS .tin format

Recommended Posts

Q:

I have been given a model with the following command in the .tgc:

Read TIN Zpts == file.tin

 

Are you able to tell me what the command is doing and what the .tin format is?

 

A:

The command is reading the elevations from a triangulated irregular network (TIN).  The “Read TIN Zpts” inspects the elevations from the TIN, much the same as the Read GRID Zpts inspects the elevations from a gridded DEM. The read TIN zpts supports both SMS.tin and 12D .12da format, in this case an SMS tin is being read.

 

The SMS. tin format is very basic, essentially this is:

VERT     <number of vertices>

X Y Z of each vertex

E.g:

VERT     8 !Tin has 8 vertices

    500.0000    1000.0000       0.0000 !x y z of 1st

 

Then:

TRI <number of triangles>

Vertex1 Vertex2 Vertex3

 

For example

TRI    10 !Tin has 10 triangles

     5      6      3 !triangle 1, connects vertices 5,6,3

Indicates that the TIN contains 10 triangles and the first triangle connects vertex 5, 6 and 3.  The 5th vertex, is the 5th in the order they are listed in the VERT section.  I

A simple TIN is SMS looks like attached post-219-0-51648200-1365578153_thumb.png.

 

The TIN is stored in the SMS format.  For more information on the file format, please refer to the Aquaveo wiki:

http://www.xmswiki.com/xms/TIN_Files

 

The TUFLOW utility TIN_to_TIN, can be used to convert between the SMS, 12da and vertical mapper .tri format.  For help using the tin_to_tin utility, refer to the following page on the TUFLOW wiki:

http://wiki.tuflow.com/index.php?title=TIN_to_TIN

 

Regards

TUFLOW Support Team

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...