v.hull.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <h2>DESCRIPTION</h2>
  2. <em>v.hull</em> computes the convex hull of a vector map and outputs
  3. the convex hull polygon as a vector area map. The convex hull, or
  4. convex envelope, for an object or a set of objects is the minimal
  5. convex set containing the given objects. This module creates a vector
  6. polygon containing all vector points or lines of the input map.
  7. <p>
  8. In the case of 3D input points, the hull will be a 3D hull as well,
  9. unless the user specifies the <b>-f</b> flag. The 3D hull will be
  10. composed of triangular faces.
  11. <center>
  12. <img src=v_hull.png border=1><br>
  13. <table border=0 width=590>
  14. <tr><td><center>
  15. Fig: Convex hull polygon created with <em>v.hull</em>
  16. </center></td></tr>
  17. </table>
  18. </center>
  19. <h2>EXAMPLE</h2>
  20. Example of <em>v.hull</em> 3D output (using two random 3D point clouds):
  21. <div class="code"><pre>
  22. g.region rural_1m -p
  23. r.mapcalc zero=0
  24. v.random -z output=random3d_a n=10 zmin=0 zmax=200
  25. v.random -z output=random3d_b n=15 zmin=400 zmax=600
  26. v.hull input=random3d_a output=random3d_a_hull
  27. v.hull input=random3d_b output=random3d_b_hull
  28. nviz elevation=zero vect=random3d_a_hull,random3d_b_hull
  29. </pre></div>
  30. <h2>REFERENCES</h2>
  31. <ul>
  32. <li>M. de Berg, M. van Kreveld, M. Overmars, O. Schwarzkopf,
  33. (2000). Computational geometry, chapter 1.1, 2-8.
  34. <li>J. O'Rourke, (1998). Computational Geometry in C (Second
  35. Edition), chapter 4.
  36. </ul>
  37. <h2>SEE ALSO</h2>
  38. <em>
  39. <a href="v.delaunay.html">v.delaunay</a>
  40. </em>
  41. <h2>AUTHOR</h2>
  42. Andrea Aime, Modena, Italy<br>
  43. Markus Neteler, ITC-irst (update to 5.7)<br>
  44. Benjamin Ducke, CAU Kiel (3D hull support)<br>
  45. Martin Landa, CTU in Prague, Czech Republic (vector lines support)
  46. <p>
  47. <i>Last changed: $Date$</i>