SelectionSystem MeshSelection { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The MeshSelection property of the BaseMeshTool class provides access to the SelectionSystem used for managing mesh selections within the mesh editor. This property allows you to interact with the selection system to perform operations such as selecting, deselecting, and querying the current selection state of mesh elements.

Usage

To use the MeshSelection property, you need to have an instance of a class that derives from BaseMeshTool. You can then access the property to manipulate the selection system as needed. This is typically used in the context of a mesh editing tool where you need to manage the selection of vertices, edges, or faces.

Example

// Example of accessing the MeshSelection property
public class CustomMeshTool : BaseMeshTool
{
    public void SelectAllFaces()
    {
        // Access the MeshSelection property
        var selectionSystem = this.MeshSelection;
        
        // Use the selection system to select all faces
        selectionSystem.SelectAll();
    }
}