MAXScript Language Reference > 3ds Max Objects > Interfaces > Core Interfaces > Core Interfaces Documentation > M >

# Interface: MeshInspector

Interfaces > Core Interfaces > MeshInspector

| Core Interfaces - Quick Navigation |

NEW in 3ds Max 2014: The MeshInspector Core Interface exposes properties for the new system for checking and repairing inconsistent data in scene geometry objects.

The Mesh Inspector runs in the background and checks geometry objects for errors after the scene is loaded, before the scene is saved, or when the topology of an object is changed at the base object level or on the stack.

The Mesh Inspector checks for the following potential problems:

- Bad vertex position values such as NAN and or +/- Infinity
- Unallocated map channels
- Unallocated face map channels
- Unallocated vertex map channels
- Array out of bounds indices
- Dead structure references
- Degenerate faces (MNMesh only)
- Spur edges (MNMesh only)
- No degree faces (MNMesh only)
- Face degree mismatch (MNMesh only)

The system works at two levels:

- Level 1 Errors are repaired automatically without user interaction. These errors do not change the appearance or topology of the mesh.
- Level 2 Errors are reported to the user and only repaired if explicitly requested. These errors may change the look or topology of the mesh.

Properties:

    MeshInspector.Enable : bool : Read|Write

When set to True (default), the Mesh Inspector will be enabled and will check geometry objects for Level 2 errors.

When set to False, no Level 2 inspection will be performed. Level 1 errors will still be checked for and repaired automatically as long as MeshInspector.RepairMesh is set to True.

    MeshInspector.RepairMesh : bool : Read|Write

When set to True (default), the Mesh Inspector will fix Level 1 errors and report Level 2 errors.

When set to False, the Mesh Inspector will not fix any Level 1 or Level 2 errors, only report them according to the settings below. The effectively sets it to Report-Only mode.

    MeshInspector.ShowDialog : bool : Read|Write

When set to True, the Mesh Inspector will show a dialog when one or more Level 2 errors are detected.

When set to False (default), no dialog will be displayed.

Methods:

No Methods Exposed.