s
This commit is contained in:
@@ -3,31 +3,17 @@ using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class DataPolygon {
|
||||
private readonly DataPlate dataPlate;
|
||||
public DataPolygon(DataPlate dataPlate) => this.dataPlate = dataPlate;
|
||||
|
||||
/// <summary> 边缘平滑度 </summary>
|
||||
public float edgeSmooth => dataPlate.edgeSmooth;
|
||||
/// <summary> 设计点 </summary>
|
||||
public List<DataPoint> points => dataPlate.points;
|
||||
/// <summary> 边缘点 </summary>
|
||||
public List<Vector3> edgePoints {
|
||||
get => dataPlate.edgePoints;
|
||||
set => dataPlate.edgePoints = value;
|
||||
}
|
||||
#region 次要数据
|
||||
/// <summary> 平面网格 </summary>
|
||||
public Mesh polygon {
|
||||
get => dataPlate.polygon;
|
||||
set => dataPlate.polygon = value;
|
||||
}
|
||||
|
||||
#region 参数
|
||||
|
||||
public Mesh mesh;
|
||||
/// <summary> 三角形数据 </summary>
|
||||
public List<DataTriangle> triangles;
|
||||
#endregion
|
||||
|
||||
#region 缓存
|
||||
/// <summary> 三角形 </summary>
|
||||
public List<DataTriangle> triangles = new List<DataTriangle>();
|
||||
#region 可视化数据
|
||||
/// <summary> 可视化对象 </summary>
|
||||
public MeshFilter meshFilter;
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user