# Computational geometry

In computer science, computational geometry is the study of algorithms to solve problems stated in terms of geometry. Some purely geometrical problems arise out of the study of computational geometric algorithms, and the study of such problems is also considered to be part of computational geometry.

The main driving force for the development of computational geometry as a discipline was progress in computer graphics, computer-aided design and manufacturing (CAD/CAM), but many problems in computational geometry are classical in nature.

Other important "customers" of computational geometry include robotics (motion planning and visibility problems), geographic information systems (GIS) (geometrical location and search, route planning), integrated circuit design (IC geometry design and verification), computer-aided engineering (CAE) (programming of numerically controlled (NC) machines).

There are two main flavors of computational geometry:

• Combinatorial computational geometry, also called algorithmic geometry, which deals with geometric objects as discrete entities.
• Numerical geometry, also called machine geometry, computer-aided geometric design (CAGD), or geometric modeling which deals primarily with representation of real-world objects in form suitable for computer computations in CAD /CAM systems. This flavor may be seen as a further development of descriptive geometry.

Often, the latter kind of computational geometry is considered to be branch of computer graphics and/or CAD, and the former one is called simply computational geometry.

## Combinatorial computational geometry

The primary goal of research in combinatorial computational geometry is to develop efficient algorithms and data structures for solving problems stated in terms of basic geometrical objects: points, line segments, polygons, polyhedra, etc.

Some of these problems look so simple that they were not regarded as problems at all until the advent of computers. Consider, for example, the Closest pair problem:

• Given N points in the plane, find two with the smallest distance from each other.

If one computes the distances between all pairs of points, there are N(N − 1)/2 of them; one then picks a pair with the smallest distance. This brute force algorithm has time complexity O(N2), i.e., its execution time is proportional to the square of the number of points. One milestone in computational geometry was the formulation of an algorithm for the closest-pair problem with time complexity O(N log N).

For modern GIS, computer graphics, and integrated circuit design systems routinely handling tens and hundreds of million points, the difference between N2 and N log N is the difference between days and seconds of computation. Hence the emphasis on computational complexity in computational geometry.

### Problems

main article: List of combinatorial computational geometry topics.

#### Core algorithms and problems

Problems from this list have wide applications in areas processing of geometric information is used.

• Given two sets of points A and B, find the orthogonal matrix U which will minimize the distance between UA and B. In plain English, we're interested in seeing if A and B are simple rotations of one another.
• Given a list of points, line segments, triangles, spheres or other convex objects, determine whether there is a separating plane, and if so, compute it.

## Numerical geometry

This branch is also known as geometric modelling, computer-aided geometric design (CAGD), and may be often found under the keyword curves and surfaces.

Core problems are curve and surface modelling and representation.

The most important instruments here are parametric curves and parametric surfaces, such as Bezier curves, spline curves and surfaces. An important non-parametric approach is the level set method.

First (and still most important) application areas are shipbuilding, aircraft, and automotive industries. However because of modern ubiquity and power of computers even perfume bottles and shampoo dispensers are designed using techniques unheard of by shipbuilders of 1960s.