using System; using TriangleNet.Geometry; namespace TriangleNet.Data { // Token: 0x02000039 RID: 57 public class Triangle : ITriangle { // Token: 0x06000208 RID: 520 RVA: 0x000192E0 File Offset: 0x000174E0 public Triangle() { this.neighbors = new Otri[3]; this.neighbors[0].triangle = Mesh.dummytri; this.neighbors[1].triangle = Mesh.dummytri; this.neighbors[2].triangle = Mesh.dummytri; this.vertices = new Vertex[3]; this.subsegs = new Osub[3]; this.subsegs[0].seg = Mesh.dummysub; this.subsegs[1].seg = Mesh.dummysub; this.subsegs[2].seg = Mesh.dummysub; } // Token: 0x17000089 RID: 137 // (get) Token: 0x06000209 RID: 521 RVA: 0x0001939B File Offset: 0x0001759B public int ID { get { return this.id; } } // Token: 0x1700008A RID: 138 // (get) Token: 0x0600020A RID: 522 RVA: 0x000193A3 File Offset: 0x000175A3 public int P0 { get { if (!(this.vertices[0] == null)) { return this.vertices[0].id; } return -1; } } // Token: 0x1700008B RID: 139 // (get) Token: 0x0600020B RID: 523 RVA: 0x000193C4 File Offset: 0x000175C4 public int P1 { get { if (!(this.vertices[1] == null)) { return this.vertices[1].id; } return -1; } } // Token: 0x0600020C RID: 524 RVA: 0x000193E5 File Offset: 0x000175E5 public Vertex GetVertex(int index) { return this.vertices[index]; } // Token: 0x1700008C RID: 140 // (get) Token: 0x0600020D RID: 525 RVA: 0x000193EF File Offset: 0x000175EF public int P2 { get { if (!(this.vertices[2] == null)) { return this.vertices[2].id; } return -1; } } // Token: 0x1700008D RID: 141 // (get) Token: 0x0600020E RID: 526 RVA: 0x00019410 File Offset: 0x00017610 public bool SupportsNeighbors { get { return true; } } // Token: 0x1700008E RID: 142 // (get) Token: 0x0600020F RID: 527 RVA: 0x00019413 File Offset: 0x00017613 public int N0 { get { return this.neighbors[0].triangle.id; } } // Token: 0x1700008F RID: 143 // (get) Token: 0x06000210 RID: 528 RVA: 0x0001942B File Offset: 0x0001762B public int N1 { get { return this.neighbors[1].triangle.id; } } // Token: 0x17000090 RID: 144 // (get) Token: 0x06000211 RID: 529 RVA: 0x00019443 File Offset: 0x00017643 public int N2 { get { return this.neighbors[2].triangle.id; } } // Token: 0x06000212 RID: 530 RVA: 0x0001945B File Offset: 0x0001765B public ITriangle GetNeighbor(int index) { if (this.neighbors[index].triangle != Mesh.dummytri) { return this.neighbors[index].triangle; } return null; } // Token: 0x06000213 RID: 531 RVA: 0x00019488 File Offset: 0x00017688 public ISegment GetSegment(int index) { if (this.subsegs[index].seg != Mesh.dummysub) { return this.subsegs[index].seg; } return null; } // Token: 0x17000091 RID: 145 // (get) Token: 0x06000214 RID: 532 RVA: 0x000194B5 File Offset: 0x000176B5 // (set) Token: 0x06000215 RID: 533 RVA: 0x000194BD File Offset: 0x000176BD public double Area { get { return this.area; } set { this.area = value; } } // Token: 0x17000092 RID: 146 // (get) Token: 0x06000216 RID: 534 RVA: 0x000194C6 File Offset: 0x000176C6 public int Region { get { return this.region; } } // Token: 0x06000217 RID: 535 RVA: 0x000194CE File Offset: 0x000176CE public override int GetHashCode() { return this.hash; } // Token: 0x06000218 RID: 536 RVA: 0x000194D6 File Offset: 0x000176D6 public override string ToString() { return string.Format("TID {0}", this.hash); } // Token: 0x04000121 RID: 289 internal int hash; // Token: 0x04000122 RID: 290 internal int id; // Token: 0x04000123 RID: 291 internal Otri[] neighbors; // Token: 0x04000124 RID: 292 internal Vertex[] vertices; // Token: 0x04000125 RID: 293 internal Osub[] subsegs; // Token: 0x04000126 RID: 294 internal int region; // Token: 0x04000127 RID: 295 internal double area; // Token: 0x04000128 RID: 296 internal bool infected; } }