[GRASS-SVN] r71708 - grass/branches/releasebranch_7_4/lib/vector/Vlib

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Nov 12 11:39:25 PST 2017


Author: neteler
Date: 2017-11-12 11:39:24 -0800 (Sun, 12 Nov 2017)
New Revision: 71708

Modified:
   grass/branches/releasebranch_7_4/lib/vector/Vlib/buffer2.c
Log:
libvector: Improve Vect_line_buffer2 documentation based on its use in v.buffer (trunk, r71704)

Modified: grass/branches/releasebranch_7_4/lib/vector/Vlib/buffer2.c
===================================================================
--- grass/branches/releasebranch_7_4/lib/vector/Vlib/buffer2.c	2017-11-12 19:37:57 UTC (rev 71707)
+++ grass/branches/releasebranch_7_4/lib/vector/Vlib/buffer2.c	2017-11-12 19:39:24 UTC (rev 71708)
@@ -983,13 +983,20 @@
    \brief Creates buffer around line.
 
    See also Vect_line_buffer().
+   
+   Shape of buffer endings is managed by two parameters - round and cap.
+   Setting round=1, cap=1 gives "classical" buffer, while
+   round=0, cap=1 gives square end, but cap=0 – butt.
+   See v.buffer manual or SVG stroke-linecap for examples.
+   
+   To get "classical" buffer, set db equal to da, and dalpha to 0.
 
    \param Points input line geometry
    \param da distance along major axis
    \param db distance along minor axis
    \param dalpha angle between 0x and major axis
-   \param round make corners round
-   \param caps add caps at line ends
+   \param round make corners round (0 - square, not 0 - round)
+   \param caps add caps at line ends (0 - butt, not 0 - caps)
    \param tol maximum distance between theoretical arc and output segments
    \param[out] oPoints output polygon outer border (ccw order)
    \param[out] inner_count number of holes



More information about the grass-commit mailing list