Description
The Invalid
property of the HalfEdgeMesh.HalfEdgeHandle
class provides a static instance of a HalfEdgeHandle
that represents an invalid or uninitialized state. This is useful for error checking and handling cases where a valid half-edge handle is not available.
Usage
Use the Invalid
property when you need to represent a half-edge handle that is not valid. This can be used to initialize variables or to check against when determining if a half-edge handle is valid.
Example
// Example of using the Invalid property
HalfEdgeMesh.HalfEdgeHandle edgeHandle = HalfEdgeMesh.HalfEdgeHandle.Invalid;
if (edgeHandle == HalfEdgeMesh.HalfEdgeHandle.Invalid)
{
// Handle the invalid state
// This could involve logging an error, throwing an exception, or other error handling logic
}