v.hull(1)
β¨ v.hull(1) β¨ β a page from the GRASS GIS User's Manual π
okay bestie, buckle up, we're doing convex hulls today and honestly? it's giving geometry queen π
π« NAME π«
v.hull β makes a 2D/3D convex hull for a vector map you hand it. that's it, that's the job. slay. β¨
π·οΈ KEYWORDS π·οΈ
vector, geometry, 3D π¦
π SYNOPSIS π
v.hull
v.hull --help
v.hull [-rf] input=name [layer=string] output=name [cats=range]
[where=sql_query] [--overwrite] [--help] [--verbose] [--quiet]
[--ui]
π© Flags:
-rβ limit it to the current region π―-fβ make a 'flat' 2D hull even if your input is 3D points (no cap, it will simply flatten the situation π )--overwriteβ let output files overwrite files that already exist, so rude but so useful--helpβ print the usage summary, your lil cheat sheet π«Ά--verboseβ verbose module output, she's chatty--quietβ quiet module output, she's mysterious π€«--uiβ force launching the GUI dialog, for the visual girlies π
π§© Parameters:
input=name[required] β name of input vector map. or a data source for direct OGR access, iykyk.layer=stringβ layer number or name ('-1'for all layers). a single vector map can be connected to multiple database tables, and this number decides which table to use. when you're doing direct OGR access, this is the layer name instead. default is-1. πoutput=name[required] β name for output vector map. give it a cute one πcats=rangeβ category values. example:1,3,7-9,13where=sql_queryβ WHERE conditions of an SQL statement, no 'where' keyword needed. example:income < 1000 and population >= 10000
π DESCRIPTION π
so v.hull computes the convex hull of a vector map and spits out that convex hull polygon as a vector area map. and what even is a convex hull, you ask? it's also called a convex envelope β and for an object or a set of objects it's the minimal convex set containing the given objects. iconic definition, honestly. this module builds a vector polygon that contains all the vector points or lines from your input map. all of them. periodt. π
now, when your input points are 3D, the hull is gonna be 3D too β unless you go ahead and pass the -f flag. and heads up: the 3D hull will be composed of triangular faces. πΊ
Fig: Convex hull polygon created with v.hull πΈ
π NOTES π
okay real talk, listen closely: to use the where option, you must set the layer option to a positive number. the default is '-1' for 'all layers', and if you leave it there then all the points from all the layers get used, and your cats and where options get completely ignored. not a vibe. set the layer. π¨
π§ͺ EXAMPLE π§ͺ
here's an example of v.hull 3D output, using two random 3D point clouds from the North Carolina sample data set:
g.region rural_1m -p
r.mapcalc "zero = 0"
v.random -z output=random3d_a n=10 zmin=0 zmax=200
v.random -z output=random3d_b n=15 zmin=400 zmax=600
v.hull input=random3d_a output=random3d_a_hull
v.hull input=random3d_b output=random3d_b_hull
d.mon wx0
d.vect random3d_a_hull
d.vect random3d_a color=red
d.vect random3d_b_hull
d.vect random3d_b color=red
# 3D view in wxGUI (g.gui)
Fig: Convex hull in 3D from 3D points created with v.hull π₯
π REFERENCES π
- M. de Berg, M. van Kreveld, M. Overmars, O. Schwarzkopf, (2000). Computational geometry, chapter 1.1, 2-8.
- J. O'Rourke, (1998). Computational Geometry in C (Second Edition), chapter 4.
π SEE ALSO π
v.delaunay
π AUTHORS π
- Andrea Aime, Modena, Italy
- Markus Neteler, ITC-irst (update to 5.7)
- Benjamin Ducke, CAU Kiel (3D hull support)
- Martin Landa, CTU in Prague, Czech Republic (vector lines support)
πΎ SOURCE CODE πΎ
available at: v.hull source code (history) π¦
accessed: Saturday Jan 17 05:41:22 2026
Main index | Vector index | Topics index | Keywords index | Graphical index | Full index
that's the whole page bestie, go build yourself a hull and be the main character of your own point cloud π
Β© 2003-2025 GRASS Development Team, GRASS GIS 8.4.2 Reference Manual β and this whole thing lives under GRASS 8.4.2, landing on your screen as v.hull(1). mwah π
β¨π
π¦ where this page comes from
- fedora 44: grass 8.4.2-4.fc44 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms