Determines whether this instance is a valid mesh and returns an error description.
Namespace: DigitalRune.Geometry.MeshesAssembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.9.0.0 (1.9.3.9490)
Syntax
| C# |
|---|
public bool IsValid( out string errorDescription ) |
| Visual Basic |
|---|
Public Function IsValid ( _ <OutAttribute> ByRef errorDescription As String _ ) As Boolean |
| Visual C++ |
|---|
public: bool IsValid( [OutAttribute] String^% errorDescription ) |
Parameters
- errorDescription
- Type: System..::..String%
The error description or nullNothingnullptra null reference (Nothing in Visual Basic) if the mesh is valid.
Return Value
trueTruetruetrue (True in Visual Basic) if this instance is valid; otherwise, falseFalsefalsefalse (False in Visual Basic).
Remarks
This method checks if all components are linked properly. Problems can be:
- Missing components, e.g. a face is not entirely bound by edges.
- Wrong links, e.g. edge A has a twin B and the twin of B is not set to A.
- ...