List<MeshFace> ExtrudeSelection( Vector3 delta )

book_4_sparkGenerated
code_blocksInput

Description

The ExtrudeSelection method is a virtual method in the BaseMeshTool class, which is part of the Editor.MeshEditor namespace. This method is used to extrude the currently selected mesh faces by a specified vector, effectively creating new geometry by extending the selected faces in the direction of the given vector.

Usage

To use the ExtrudeSelection method, you need to have a selection of mesh faces that you want to extrude. You can then call this method with a Vector3 parameter that specifies the direction and distance of the extrusion.

This method returns a List<MeshFace> containing the new faces created by the extrusion process.

Example

// Assuming 'tool' is an instance of a class derived from BaseMeshTool
Vector3 extrusionVector = new Vector3(0, 0, 1); // Extrude along the Z-axis
List<MeshFace> newFaces = tool.ExtrudeSelection(extrusionVector);

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