RhinoCommon API
MeshNgonListIsValid Method (Int32, TextLog) |
Tests an ngon to see if the vertex and face references are valid and pass partial boundary validity checks.
Namespace: Rhino.Geometry.Collections
Assembly: RhinoCommon (in RhinoCommon.dll)

public uint IsValid( int index, TextLog textLog )
Public Function IsValid ( index As Integer, textLog As TextLog ) As UInteger
Parameters
- index
- Type: SystemInt32
The index of the ngon to test. - textLog
- Type: Rhino.FileIOTextLog
A textlog for collecting information about problems.
Return Value
Type: UInt320 if the ngon is not valid, otherwise the number of boundary edges.

If the return value is > MeshNgon.BoundaryVertexCount, then the ngon has either inner boundaries or duplicate vertices.

Rhino for Windows
Supported in: 6.8