Files
wg_cpso/CPSO/Commands/0030_Geometry/CFindEdgesByAngleForGeometryParts.cs

45 lines
1.4 KiB
C#
Raw 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 CFindEdgesByAngleForGeometryParts : PreprocessCommand
{
// Variables
private string[] _partNames;
private double _edgeAngle;
// Constructor
public CFindEdgesByAngleForGeometryParts(string[] partNames, double edgeAngle)
: base("Find edges by angle for geometry parts")
{
_partNames = partNames;
_edgeAngle = edgeAngle;
}
// Methods
public override bool Execute(Controller receiver)
{
receiver.FindEdgesByAngleForGeometryParts(_partNames, _edgeAngle);
return true;
}
public override string GetCommandString()
{
return base.GetCommandString() + GetArrayAsString(_partNames) + ": " + _edgeAngle + " " +
StringAngleDegConverter.GetUnitAbbreviation();
}
}
}