41 lines
1.2 KiB
C#
41 lines
1.2 KiB
C#
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
using System.Threading.Tasks;
|
|||
|
|
using CPSO;
|
|||
|
|
using CaeModel;
|
|||
|
|
using CaeMesh;
|
|||
|
|
using CaeGlobals;
|
|||
|
|
|
|||
|
|
|
|||
|
|
namespace CPSO.Commands
|
|||
|
|
{
|
|||
|
|
[Serializable]
|
|||
|
|
class CFlipFaceOrientations : PreprocessCommand
|
|||
|
|
{
|
|||
|
|
// Variables
|
|||
|
|
private GeometrySelection _geometrySelection;
|
|||
|
|
|
|||
|
|
|
|||
|
|
// Constructor
|
|||
|
|
public CFlipFaceOrientations(GeometrySelection geometrySelection)
|
|||
|
|
: base("Flip face orientations")
|
|||
|
|
{
|
|||
|
|
_geometrySelection = geometrySelection.DeepClone();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
// Methods
|
|||
|
|
public override bool Execute(Controller receiver)
|
|||
|
|
{
|
|||
|
|
receiver.FlipFaceOrientations(_geometrySelection.DeepClone());
|
|||
|
|
return true;
|
|||
|
|
}
|
|||
|
|
public override string GetCommandString()
|
|||
|
|
{
|
|||
|
|
return base.GetCommandString() + _geometrySelection.ToString();
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|