List<MeshFace> ExtrudeSelection( Vector3 delta )

book_4_sparkGenerated
code_blocksInput

Description

The ExtrudeSelection method in the EdgeTool class is used to extrude selected mesh edges along a specified direction. This method is part of the Editor.MeshEditor namespace and is designed to manipulate mesh geometry by extending the selected edges in the direction of the provided vector.

Usage

To use the ExtrudeSelection method, you need to have an instance of the EdgeTool class. Call the method with a Vector3 parameter that specifies the direction and magnitude of the extrusion. The method returns a list of MeshFace objects that represent the newly created faces as a result of the extrusion.

Example

// Assuming 'edgeTool' is an instance of EdgeTool
Vector3 extrusionDirection = new Vector3(1.0f, 0.0f, 0.0f); // Extrude along the x-axis
List<MeshFace> newFaces = edgeTool.ExtrudeSelection(extrusionDirection);

// Process the new faces as needed
foreach (var face in newFaces)
{
    // Perform operations on each new face
}