Files
2026-06-04 11:42:34 +02:00

75 lines
1.9 KiB
C#

using System;
using System.Collections.Generic;
namespace ProBuilder2.Common
{
// Token: 0x0200004C RID: 76
[Obsolete("Use pb_ConnectEdges class directly.")]
public class pb_EdgeConnection : IEquatable<pb_EdgeConnection>
{
// Token: 0x0600024D RID: 589 RVA: 0x0001EE45 File Offset: 0x0001D245
public pb_EdgeConnection(pb_Face face, List<pb_Edge> edges)
{
this.face = face;
this.edges = edges;
}
// Token: 0x17000039 RID: 57
// (get) Token: 0x0600024E RID: 590 RVA: 0x0001EE5B File Offset: 0x0001D25B
public bool isValid
{
get
{
return this.edges != null && this.edges.Count > 1;
}
}
// Token: 0x0600024F RID: 591 RVA: 0x0001EE79 File Offset: 0x0001D279
public override bool Equals(object b)
{
return b is pb_EdgeConnection && this.face == ((pb_EdgeConnection)b).face;
}
// Token: 0x06000250 RID: 592 RVA: 0x0001EE9F File Offset: 0x0001D29F
public bool Equals(pb_EdgeConnection fc)
{
return this.face == fc.face;
}
// Token: 0x06000251 RID: 593 RVA: 0x0001EEAF File Offset: 0x0001D2AF
public static explicit operator pb_Face(pb_EdgeConnection fc)
{
return fc.face;
}
// Token: 0x06000252 RID: 594 RVA: 0x0001EEB7 File Offset: 0x0001D2B7
public override int GetHashCode()
{
return base.GetHashCode();
}
// Token: 0x06000253 RID: 595 RVA: 0x0001EEBF File Offset: 0x0001D2BF
public override string ToString()
{
return this.face.ToString() + " : " + this.edges.ToString(", ");
}
// Token: 0x06000254 RID: 596 RVA: 0x0001EEE8 File Offset: 0x0001D2E8
public static List<int> AllTriangles(List<pb_EdgeConnection> ec)
{
List<pb_Edge> list = new List<pb_Edge>();
foreach (pb_EdgeConnection pb_EdgeConnection in ec)
{
list.AddRange(pb_EdgeConnection.edges);
}
return list.AllTriangles();
}
// Token: 0x040001B1 RID: 433
public pb_Face face;
// Token: 0x040001B2 RID: 434
public List<pb_Edge> edges;
}
}