You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.2 KiB

using SharpDX;
using SparkClient.Views.UserControl.ViewportData.Enum;
namespace SparkClient.Views.UserControl.ViewportData.Entity;
/// <summary>
/// 三角形模型实体
/// </summary>
public class Viewport3DTriangleEntity
{
/// <summary>
/// 点1
/// </summary>
public Vector3 Point1 { get; set; }
/// <summary>
/// 点2
/// </summary>
public Vector3 Point2 { get; set; }
/// <summary>
/// 点3
/// </summary>
public Vector3 Point3 { get; set; }
/// <summary>
/// 三角形代码[生成]
/// 按顺序:p1.x,p1.y,p1.z;p2.x,p2.y,p2.z;p3.x,p3.y,p3.z 拼接后使用生成大写16位md5
/// </summary>
public String TriangleCode { get; set; }
/// <summary>
/// 面代码
/// 由多个三角形组成的面的代码:entity1、entity2组成了一个正方形,那么他俩的TriangleCode属性值一致
/// </summary>
public String PlaneCode { get; set; }
/// <summary>
/// 面类型
/// 比如这个面时钻石的腰部分,那么type统一,当面类型为err时则该面是一个异常面
/// 可选值:PlaneType
/// </summary>
public PlaneType PlaneType { get; set; }
}