Geometry Handling
- Last UpdatedNov 27, 2025
- 1 minute read
The basic geometrical element is the segment. A segment can be a line segment or a circular arc segment. A segment can be represented in R2-space or in R3-space.
A line segment is represented by its initial and terminal points, thus giving the segment a direction.

In R3, a third component z is added.
A circular arc segment is represented as the line but has also an amplitude vector (xh, yh).

In some cases in R2, the amplitude vector is replaced with a single number representing the length of the amplitude vector, i. e. the amplitude.
Continuous chains of segments can be combined to form contours.