Give that my previous idea may be too difficult
is it possible to draw a smooth(but "programmable") spline that intersects(or almost intersects) a group of ordered points then "enlarge" it.
Here is what enlarge may mean:
- Expand the curve to the "outside" by a certain certain distance.
- Draw the spline with a large line thickness BUT do not have sharp edges
- Draw the spline as a union of disks for each point on the spline but have the disk diameter depend on the curvature. Sharp peaks would produce larger circles which should "cover up" a the cusp. e.g., say we have an L curve. At the cusp the circles used would be larger than at the end points which would produce a more gradual change(here we would need to offset the disks position slightly too depending on the change in diameter)
- Anything that is smooth, regular, and "encloses" the line segments will work with preferably some way to control it's smoothness and size. The goal being to visually group the set of points to distinguish them from other groups of points(and I cannot change the properties of the points themselves)
\usetikzlibrary{backgrounds} \begin{tikzpicture} \draw[style=help lines] (0,0) grid[step=1cm] (7,7); \begin{scope}[every node/.style={fill,circle,inner sep=2pt}] \foreach \x/\y in {2/0,4/0,4/2,4/4,2/5,2/3,0/6,7/6,6/5,6/3,7/1} \coordinate (n\x\y) at (\x,\y); \end{scope}– percusse Apr 17 '12 at 18:01\begin{scope}[on background layer,myline/.style={line cap=round,line width=5mm,line join=round}] \draw[blue,myline] (n20) -- (n40); \draw[myline,fill=green,draw=green,line width=8mm] (n71) -- (n63) -- (n65) -- (n76)--cycle; \draw[myline,red] (n71) -- (n63) -- (n65) -- (n76); \draw[myline,fill=green,brown,line width=8mm] (n06) -- (n25) -- (n44) -- (n42) -- (n23) -- cycle; \end{scope} \end{tikzpicture}– percusse Apr 17 '12 at 18:01