bool IsValid { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The IsValid property of the MeshEdge struct in the Editor.MeshEditor namespace is a boolean property that indicates whether the mesh edge is valid. This property is virtual, sealed, and publicly accessible, meaning it can be overridden in derived classes but cannot be further sealed. It is marked with the Sandbox.HideAttribute and System.Text.Json.Serialization.JsonIgnoreAttribute, which means it is hidden from the Sandbox editor and ignored during JSON serialization.

Usage

Use the IsValid property to check if a MeshEdge instance represents a valid edge within a mesh. This can be useful for validating mesh data before performing operations that assume the presence of valid edges.

Example

// Example of checking if a MeshEdge is valid
MeshEdge edge = new MeshEdge();

if (edge.IsValid)
{
    // Proceed with operations on the valid edge
}
else
{
    // Handle the invalid edge case
}