Skip to topic
|
Skip to bottom
Jump:
TModeling
TModeling Web
TModeling Web Home
Changes
Notify
Index
Search
Webs
BioGeometry
Main
TModeling
TWiki
Edit
Attach
Printable
TModeling.Tin_dist
r1.1 - 31 Dec 2008 - 16:50 - Main.guest
topic end
Start of topic |
Skip to actions
*tin_dist* Computes distance from a given source vertex to all vertices in the mesh. Uses Dijkstra's method to compute distances corresponding to shortest paths which can travel only on the edges of the mesh. Uses !Fast marching method to compute approximate distances corresponding to paths which can pass through the interior of triangles of the mesh. The output is a text file containing a sequence of triplets. Each of these triplets corresponds to a vertex of the input mesh. The first two members of these triplets are the X-Y coordinates of the corresponding vertex, while the third member of the triplet is the distance of the corresponding vertex from the given source. %TOC% ---+++Example Usage: ------------------------------------- ---++++General Usage: <pre> tin_dist -i input_mesh -dijkstra -s x y z -o output.txt </pre> =-dijkstra= Computes distances using Dijkstra's method. If this flag is not specified, !Fast marching method is used for computing distances. =-s x y z= Used to specify the coordinates of the source vertex. The vertex in the mesh closest to these coordinates, in a Euclidean sense, is chosen as the source. --- ---+++Example <pre> tin_dist -i input_mesh.smb -s 0.0 34.52 12.2 -o distances.txt </pre> The above command computes distances from the source to all vertices of the mesh using fast marching method. These distances are output to distances.txt . Source is chosen to be the vertex of the mesh closest to 0.0 34.52 12.2. <pre> tin_dist -i input_mesh.smb -s 0.0 34.52 12.2 -o distances.txt -dijkstra </pre> The above command computes distances from the source to all vertices of the mesh using Dijkstra's method. These distances are output to distances.txt . Source is chosen to be the vertex of the mesh closest to 0.0 34.52 12.2. --- -- Main.VishalVerma - 29 Dec 2008
to top
End of topic
Skip to action links
|
Back to top
Edit
|
Attach image or document
|
Printable version
|
Raw text
|
More topic actions
Revisions: | r1.1
|
Total page history
|
Backlinks
You are here:
TModeling
>
Tin_dist
to top
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback