Galil Motion Control cadman Page 11
Figure 10:
Measuring text-to-line distances
Polylines
The distance from a text element to a polyline element is the perpendicular distance to the
closest line segment in the polyline. As with lines, if a perpendicular line cannot be drawn
between the two elements, the distance is measured between the text element and the polyline
endpoint. Although composed of lines, polylines remain distinct elements with only two
endpoints.
Arcs
Usually the distance between an arc and a text element is measured as the difference between
the arc radius and the distance from the arc center to the text (Figure 11, Case 1). If a radial line
from the arc center to the text element does not intersect the arc, the distance is measured
between the text and the nearest arc endpoint (Figure 11, Case 2).