分析模块重新调整
This commit is contained in:
@@ -1,55 +1,38 @@
|
||||
using CaeMesh;
|
||||
// ReSharper disable SuggestVarOrType_BuiltInTypes
|
||||
// ReSharper disable ConvertToAutoProperty
|
||||
using LiteDB;
|
||||
|
||||
namespace CaeKnowledge.Data
|
||||
{
|
||||
public class ProcessingJob
|
||||
{
|
||||
private readonly ToolPosition _toolPosition;
|
||||
private readonly FeNode _feNode;
|
||||
public ObjectId Id { get; set; }
|
||||
|
||||
// 要继承的计算步
|
||||
public string StepName { get; }
|
||||
// 计算步名称
|
||||
public string StepName { get; set; }
|
||||
|
||||
public string NewStepName { get; set; }
|
||||
// StepId
|
||||
public int StepId {get; set; }
|
||||
|
||||
// 曲面集名称
|
||||
public string SurfaceName {get; set; }
|
||||
|
||||
// 刀位点位置坐标
|
||||
public double X => _toolPosition.X;
|
||||
public double Y => _toolPosition.Y;
|
||||
public double Z => _toolPosition.Z;
|
||||
public double X {get; set;}
|
||||
public double Y {get; set;}
|
||||
public double Z {get; set;}
|
||||
|
||||
// 切削力
|
||||
public double Fx => _toolPosition.MaxFx;
|
||||
public double Fy => _toolPosition.MaxFy;
|
||||
public double Fz => _toolPosition.MaxFz;
|
||||
public double Fx {get; set;}
|
||||
public double Fy {get; set;}
|
||||
public double Fz {get; set;}
|
||||
|
||||
// 最接近的节点
|
||||
public FeNode Node => _feNode;
|
||||
public ProcessingJob()
|
||||
{ }
|
||||
|
||||
public FeFace[] Faces { get; }
|
||||
|
||||
// 刀位点到网格最近节点的距离
|
||||
public double MinimumDistance { get; } = 0;
|
||||
|
||||
public ProcessingJob(string stepName, ToolPosition tp, FeNode node, FeFace[] faces)
|
||||
public ProcessingJob(ToolPosition tp)
|
||||
{
|
||||
_toolPosition = tp;
|
||||
_feNode = node;
|
||||
X = tp.X; Y = tp.Y; Z = tp.Z;
|
||||
|
||||
StepName = stepName;
|
||||
|
||||
double x1 = _toolPosition.X;
|
||||
double y1 = _toolPosition.Y;
|
||||
double z1 = _toolPosition.Z;
|
||||
|
||||
double x2 = node.X;
|
||||
double y2 = node.Y;
|
||||
double z2 = node.Z;
|
||||
|
||||
Faces = faces;
|
||||
|
||||
MinimumDistance = MeshTools.Distance(x1, y1, z1, x2, y2, z2);
|
||||
Fx = tp.MaxFx; Fy = tp.MaxFy; Fz = tp.MaxFz;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user