# MGED CMD tol

From BRL-CAD

# tol[edit]

## Contents

## Syntax[edit]

**tol**[*abs #*] [*rel #*] [*norm #*] [*dist #*] [*perp #*]

## Argument(s)[edit]

**abs**- This
*absolute*tolerance is specified in model units and represents the maximum allowable error in the distance from the actual shape surface to the tessellated surface. An*absolute*tolerance of 0 means that the*absolute*tolerance should be ignored.

- This

**rel**- This
*relative*tolerance is specified in terms of a fraction of the shape size. The value is multiplied by the size of the shape to determine another bound on the maximum allowable error in the distance from the actual shape surface to the tessellated surface. A*relative*tolerance of 0 means that the*relative*tolerance should be ignored.

- This

**norm**- This
*normal*tolerance is specified in degrees and represents the maximum angle between the actual shape surface normal and the tessellated surface normal. A*normal*tolerance of 0 means that the*normal*tolerance should be ignored.

- This

**dist**- The
*distance*tolerance is specified in model units and represents the minimum distance required between two vertices to consider them distinct.

- The

**perp**- The
*perpendicularity*tolerance is specified as the cosine of an angle. Two objects will be considered perpendicular if the cosine of the angle between them is less than the*perpendicularity*tolerance. Similarly, two objects will be considered parallel if the cosine of the angle between them is greater than 1.0, the*perpendicularity*tolerance.

- The

## Return Value(s)[edit]

- No Return Values for this command.

## Description[edit]

The "tol" command, with no arguments, lists the current tolerance settings. If the command line includes any of the keywords followed by a number, then that tolerance setting will be modified. The keywords are:

**Tessellation tolerances**- The tessellation tolerances are used to control the facetization of primitive shapes. If more than one tolerance value is specified, the tessellation is performed to meet the most stringent.

**abs**- This
*absolute*tolerance is specified in model units and represents the maximum allowable error in the distance from the actual shape surface to the tessellated surface. An*absolute*tolerance of 0 means that the*absolute*tolerance should be ignored.

- This

**rel**- This
*relative*tolerance is specified in terms of a fraction of the shape size. The value is multiplied by the size of the shape to determine another bound on the maximum allowable error in the distance from the actual shape surface to the tessellated surface. A*relative*tolerance of 0 means that the*relative*tolerance should be ignored.

- This

**norm**- This
*normal*tolerance is specified in degrees and represents the maximum angle between the actual shape surface normal and the tessellated surface normal. A*normal*tolerance of 0 means that the*normal*tolerance should be ignored.

- This

**Calculational tolerances**

**dist**- The
*distance*tolerance is specified in model units and represents the minimum distance required between two vertices to consider them distinct.

- The

**perp**- The
*perpendicularity*tolerance is specified as the cosine of an angle. Two objects will be considered perpendicular if the cosine of the angle between them is less than the*perpendicularity*tolerance. Similarly, two objects will be considered parallel if the cosine of the angle between them is greater than 1.0, the*perpendicularity*tolerance.

- The

## Example(s)[edit]

- mged>
**tol rel .05 perp 1e-6**- Set the
*relative*tolerance to 5% and the*perpendicularity*tolerance to 1e-06 (cosine of 89.9999˚).

- Set the

## See Also[edit]

Page Generated by David Loman on: 10/12/2007 at: 7:25:32 AM