Description
The CalculateSelectionBasis
method is a virtual method in the Editor.MeshEditor.FaceTool
class. It is responsible for calculating the rotation basis of the currently selected mesh faces. This method returns a Rotation
object that represents the orientation of the selected faces, which can be used for further transformations such as moving, rotating, or scaling the faces.
Usage
To use the CalculateSelectionBasis
method, ensure that you have a valid instance of the FaceTool
class. This method does not take any parameters and can be called directly on the instance. The returned Rotation
object can then be used to apply transformations to the selected mesh faces.
Example
// Assuming 'faceTool' is an instance of Editor.MeshEditor.FaceTool
Rotation selectionBasis = faceTool.CalculateSelectionBasis();
// Use the selectionBasis for further transformations
// For example, applying a rotation to the selected faces
// faceTool.RotateSelection(selectionBasis);