Files
wg_cpso/CPSO/Commands/0050_Model/02_Tools/CFindEdgesByAngleForModelPartsCommand.cs

45 lines
1.4 KiB
C#
Raw Permalink Normal View History

2026-03-25 18:20:24 +08:00
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 CFindEdgesByAngleForModelPartsCommand : PreprocessCommand
{
// Variables
private string[] _partNames;
private double _edgeAngle;
// Constructor
public CFindEdgesByAngleForModelPartsCommand(string[] partNames, double edgeAngle)
: base("Find edges by angle for model parts")
{
_partNames = partNames;
_edgeAngle = edgeAngle;
}
// Methods
public override bool Execute(Controller receiver)
{
receiver.FindEdgesByAngleForModelParts(_partNames, _edgeAngle);
return true;
}
public override string GetCommandString()
{
return base.GetCommandString() + GetArrayAsString(_partNames) + ": " + _edgeAngle + " " +
StringAngleDegConverter.GetUnitAbbreviation();
}
}
}