Description
The Invalid
property of the HalfEdgeMesh.FaceHandle
class provides a static instance of a FaceHandle
that represents an invalid or uninitialized face handle. This is useful for error checking and handling cases where a valid face handle is not available.
Usage
Use the Invalid
property when you need to represent a face handle that is not valid. This can be used to initialize variables or to check against when determining if a face handle is valid.
Example
// Example of using HalfEdgeMesh.FaceHandle.Invalid
// Initialize a face handle to an invalid state
HalfEdgeMesh.FaceHandle faceHandle = HalfEdgeMesh.FaceHandle.Invalid;
// Check if a face handle is valid
if (!faceHandle.IsValid)
{
// Handle the invalid face handle case
// For example, log an error or skip processing
}