On-Line Computer Graphics Notes

Convex Combinations


Overview

Convex combinations are simply affine combinations where the constants in the combination are limited to be in the interval [0,1].

For a postscript version of these notes look here.


What is a Convex Combination?

  Given a set of points tex2html_wrap_inline91, we can form an affine combination of these points by selecting constants tex2html_wrap_inline93, (where tex2html_wrap_inline95) and write
displaymath33
If each tex2html_wrap_inline97 is such that tex2html_wrap_inline99, then the point tex2html_wrap_inline101 is called a convex combination of the points tex2html_wrap_inline103.


Example - Point on a Line Segment

To give a simple example of this, consider two points tex2html_wrap_inline105 and tex2html_wrap_inline107. Any point tex2html_wrap_inline109 on the line passing through these two points can be written as
displaymath37
or equivalently
displaymath39
where tex2html_wrap_inline111. The points tex2html_wrap_inline113 and tex2html_wrap_inline115 in the following figure are affine combinations of tex2html_wrap_inline117 and tex2html_wrap_inline119.

tex2html_wrap155

The point tex2html_wrap_inline121 is a convex combination since tex2html_wrap_inline123. Any point on the line segment joining tex2html_wrap_inline125 and tex2html_wrap_inline127 can be written as a convex combination.


Convex Set

Given any set of points, we say that the set is a convex set if given any points tex2html_wrap_inline129 in the set, any convex combination of these points is also in the set. The following figure illustrates both a convex set (on the left) and a non-convex set (on the right).

tex2html_wrap157

Since any convex combination of points from a convext set must lie in the set, then certainly the straight line joining any two points of the set must also be completely in the set. This concept is actually quite intuitive, in that if one can draw a straight line between two points of the set that is not completely contained within the set, the the set is not convex.


Convex Hull

Given a set of points tex2html_wrap_inline131. The set of all points tex2html_wrap_inline133 that can be written as convex combinations of tex2html_wrap_inline135. is called the convex hull of the set. It is easy to see that this convex hull is necessarily a convex set - but, it turns out that it is the smallest convex set that contains tex2html_wrap_inline137. (If there were a convex set C smaller than the convex hull that contained the points, then we could find a point tex2html_wrap_inline141 in the convex hull, but not in the set C. But since each of the tex2html_wrap_inline145 is in both sets, and the point tex2html_wrap_inline147 is a convex combination of the tex2html_wrap_inline149s, it must also be in the convex hull as well as in C.) The following figure illustrates the convex hull of a set of six points:

tex2html_wrap159

We note that one of the six points does not contribute to the boundary of the convex hull. If one looked closely at the coordinates of tex2html_wrap_inline153, one would find that this point could be written as a convex combination of the other five.


References

1
DEROSE, T. Coordinate-free geometric programming. Technical Report 89-09-16, Department of Computer Science and Engineering, University of Washington, Seattle, Washington, 1994.


Summary

Convex combinations are an extremely important concept in computer graphics and geometric modeling. The convex-hull concept will allow us to take a set of points, put a bounding box about the set of points, and since the bounding box is convex, we are insured that the convex-hull of the set of points is also contained in the bounding box. These bounding boxes are the method that we will use to ``keep track of'' our objects.


This document maintained by Ken Joy

Comments to the Author

All contents copyright (c) 1996, 1997
Computer Science Department,
University of California, Davis
All rights reserved.



Ken Joy
Fri May 2 14:29:18 PDT 1997