WidthTo Commands

This topic describes the following commands:

Input: DV layer (containing polygons)

Constraint (operator and positive real number)

Measurement region qualifier (optional)

Orientation qualifiers (optional)

Adjacent Edge qualifier (optional)

Raw/Merged qualifier (optional)

Output: DV layer – type varies with the command. WidthToErrors outputs a DV layer containing error clusters. WidthToPolygons outputs a DV layer containing polygons. WidthToEdges outputs a DV layer containing edges.

Description: Checks the width of individual geometry. Width is the distance between facing, inside edges on the same geometry. This is an edge-to-edge check, not corner-to-corner, or corner-to-edge.

The arrows in the following figures indicate the edge pairs that are checked when using default orientation and adjacent qualifiers: Acute Also, Not Obtuse, Parallel Also, Not Perpendicular, and Not Adjacent.

Example

Supported operators:

< Less than

<= Less than or equal to

== Equal to

> Greater than

>= Greater than or equal to

Qualifiers may be specified to constrain the edges checked. The defaults if qualifiers are not specified are Round (measurement region), Acute Also, Not Obtuse, Parallel Also, Not Perpendicular, Not Adjacent, and Merged (geometry).

Example (JScript):

var layer1 = DVChecker.ImportLayer("trace");

var widthLayer1 = DVChecker.WidthToErrors(Array(“<”, 5), layer1,

Array("Round”, “Acute Also”, “Not Obtuse”, “Parallel Also”, “Not Perpendicular”,

“Adjacent Also”, “Merged”));

DVChecker.SaveLayer(widthLayer1, “width errors”, “width < 5 on trace layer”);

Measurement Region Qualifier

Measurement region qualifier specifies the construction of the region used to test the constraint. There exist the following choices:

Measurement Region Use To Check Constraint

The following figure displays the returned segment for error or edge output, marked in blue, and the measurement regions, in red and green, that are used to check the constraint.

Measurement Region Use to Check Constraint Example

Orientation Qualifiers

Orientation qualifiers specify edge or angle orientations that qualify edges to be checked against each other. Up to one choice from each of the following groups may be used:

If multiple choices from any of the groups are specified, the last choice on the group is used, and it then replaces any earlier choices of that group in the command.

WidthToErrors(Array(“<”, 5), layer, Array(“Acute Also, Obtuse Also, Not Parallel, Not Acute));

is interpreted as:

WidthToErrors(Array(“<”, 5), layer, Array(“Obtuse Also, Not Parallel, Not Acute));

If a choice contains “Only”, that is the only orientation qualifier recognized. Any other orientation qualifiers before or after the first “Only” is ignored.

WidthToErrors(Array(“<”, “5mm”), layer, Array(“Acute Also, Obtuse Only, Not Parallel, Perpendicular Only));

is interpreted as:

WidthToErrors(Array(“<”, “5mm”), layer, Array(“Obtuse Only));

Acute filter

Obtuse filter

Parallel filter

Perpendicular filter

Adjacent Edge Qualifier

Adjacent Edge qualifier determines if adjacent edges are checked against each other. Adjacent edges are edges that share a start or end point. This qualifier is used in conjunction with the orientation qualifiers to determine which edges to check. One of the following choices may be specified:

The arrows in the following figures indicate the edge pairs that are checked when using Adjacent Only with the default orientation-adjacent qualifiers (Acute Also, Not Obtuse, Parallel Also, Not Perpendicular, and Not Adjacent).

Adjacent Edge Qualifier Example

Raw/Merged Qualifier

The Raw/Merged qualifier applies to a DV layer created using the ImportLayer command. Raw specifies the geometry is to be used without first being merged. In contrast, the default setting of Merged specifies the geometry is merged prior to its use.

The arrows in the following figures indicate the edge pairs checked using Raw versus Merged with the other qualifiers defaulted.

Raw/Merged Qualifier Example