scripts
This commit is contained in:
@@ -0,0 +1,315 @@
|
||||
using System;
|
||||
|
||||
namespace TriangleNet.Data
|
||||
{
|
||||
// Token: 0x02000037 RID: 55
|
||||
internal struct Otri
|
||||
{
|
||||
// Token: 0x060001DA RID: 474 RVA: 0x0001885C File Offset: 0x00016A5C
|
||||
public override string ToString()
|
||||
{
|
||||
if (this.triangle == null)
|
||||
{
|
||||
return "O-TID [null]";
|
||||
}
|
||||
return string.Format("O-TID {0}", this.triangle.hash);
|
||||
}
|
||||
|
||||
// Token: 0x060001DB RID: 475 RVA: 0x00018888 File Offset: 0x00016A88
|
||||
public void Sym(ref Otri o2)
|
||||
{
|
||||
o2.triangle = this.triangle.neighbors[this.orient].triangle;
|
||||
o2.orient = this.triangle.neighbors[this.orient].orient;
|
||||
}
|
||||
|
||||
// Token: 0x060001DC RID: 476 RVA: 0x000188D8 File Offset: 0x00016AD8
|
||||
public void SymSelf()
|
||||
{
|
||||
int num = this.orient;
|
||||
this.orient = this.triangle.neighbors[num].orient;
|
||||
this.triangle = this.triangle.neighbors[num].triangle;
|
||||
}
|
||||
|
||||
// Token: 0x060001DD RID: 477 RVA: 0x00018924 File Offset: 0x00016B24
|
||||
public void Lnext(ref Otri o2)
|
||||
{
|
||||
o2.triangle = this.triangle;
|
||||
o2.orient = Otri.plus1Mod3[this.orient];
|
||||
}
|
||||
|
||||
// Token: 0x060001DE RID: 478 RVA: 0x00018944 File Offset: 0x00016B44
|
||||
public void LnextSelf()
|
||||
{
|
||||
this.orient = Otri.plus1Mod3[this.orient];
|
||||
}
|
||||
|
||||
// Token: 0x060001DF RID: 479 RVA: 0x00018958 File Offset: 0x00016B58
|
||||
public void Lprev(ref Otri o2)
|
||||
{
|
||||
o2.triangle = this.triangle;
|
||||
o2.orient = Otri.minus1Mod3[this.orient];
|
||||
}
|
||||
|
||||
// Token: 0x060001E0 RID: 480 RVA: 0x00018978 File Offset: 0x00016B78
|
||||
public void LprevSelf()
|
||||
{
|
||||
this.orient = Otri.minus1Mod3[this.orient];
|
||||
}
|
||||
|
||||
// Token: 0x060001E1 RID: 481 RVA: 0x0001898C File Offset: 0x00016B8C
|
||||
public void Onext(ref Otri o2)
|
||||
{
|
||||
o2.triangle = this.triangle;
|
||||
o2.orient = Otri.minus1Mod3[this.orient];
|
||||
int num = o2.orient;
|
||||
o2.orient = o2.triangle.neighbors[num].orient;
|
||||
o2.triangle = o2.triangle.neighbors[num].triangle;
|
||||
}
|
||||
|
||||
// Token: 0x060001E2 RID: 482 RVA: 0x000189F8 File Offset: 0x00016BF8
|
||||
public void OnextSelf()
|
||||
{
|
||||
this.orient = Otri.minus1Mod3[this.orient];
|
||||
int num = this.orient;
|
||||
this.orient = this.triangle.neighbors[num].orient;
|
||||
this.triangle = this.triangle.neighbors[num].triangle;
|
||||
}
|
||||
|
||||
// Token: 0x060001E3 RID: 483 RVA: 0x00018A58 File Offset: 0x00016C58
|
||||
public void Oprev(ref Otri o2)
|
||||
{
|
||||
o2.triangle = this.triangle.neighbors[this.orient].triangle;
|
||||
o2.orient = this.triangle.neighbors[this.orient].orient;
|
||||
o2.orient = Otri.plus1Mod3[o2.orient];
|
||||
}
|
||||
|
||||
// Token: 0x060001E4 RID: 484 RVA: 0x00018ABC File Offset: 0x00016CBC
|
||||
public void OprevSelf()
|
||||
{
|
||||
int num = this.orient;
|
||||
this.orient = this.triangle.neighbors[num].orient;
|
||||
this.triangle = this.triangle.neighbors[num].triangle;
|
||||
this.orient = Otri.plus1Mod3[this.orient];
|
||||
}
|
||||
|
||||
// Token: 0x060001E5 RID: 485 RVA: 0x00018B1C File Offset: 0x00016D1C
|
||||
public void Dnext(ref Otri o2)
|
||||
{
|
||||
o2.triangle = this.triangle.neighbors[this.orient].triangle;
|
||||
o2.orient = this.triangle.neighbors[this.orient].orient;
|
||||
o2.orient = Otri.minus1Mod3[o2.orient];
|
||||
}
|
||||
|
||||
// Token: 0x060001E6 RID: 486 RVA: 0x00018B80 File Offset: 0x00016D80
|
||||
public void DnextSelf()
|
||||
{
|
||||
int num = this.orient;
|
||||
this.orient = this.triangle.neighbors[num].orient;
|
||||
this.triangle = this.triangle.neighbors[num].triangle;
|
||||
this.orient = Otri.minus1Mod3[this.orient];
|
||||
}
|
||||
|
||||
// Token: 0x060001E7 RID: 487 RVA: 0x00018BE0 File Offset: 0x00016DE0
|
||||
public void Dprev(ref Otri o2)
|
||||
{
|
||||
o2.triangle = this.triangle;
|
||||
o2.orient = Otri.plus1Mod3[this.orient];
|
||||
int num = o2.orient;
|
||||
o2.orient = o2.triangle.neighbors[num].orient;
|
||||
o2.triangle = o2.triangle.neighbors[num].triangle;
|
||||
}
|
||||
|
||||
// Token: 0x060001E8 RID: 488 RVA: 0x00018C4C File Offset: 0x00016E4C
|
||||
public void DprevSelf()
|
||||
{
|
||||
this.orient = Otri.plus1Mod3[this.orient];
|
||||
int num = this.orient;
|
||||
this.orient = this.triangle.neighbors[num].orient;
|
||||
this.triangle = this.triangle.neighbors[num].triangle;
|
||||
}
|
||||
|
||||
// Token: 0x060001E9 RID: 489 RVA: 0x00018CAC File Offset: 0x00016EAC
|
||||
public void Rnext(ref Otri o2)
|
||||
{
|
||||
o2.triangle = this.triangle.neighbors[this.orient].triangle;
|
||||
o2.orient = this.triangle.neighbors[this.orient].orient;
|
||||
o2.orient = Otri.plus1Mod3[o2.orient];
|
||||
int num = o2.orient;
|
||||
o2.orient = o2.triangle.neighbors[num].orient;
|
||||
o2.triangle = o2.triangle.neighbors[num].triangle;
|
||||
}
|
||||
|
||||
// Token: 0x060001EA RID: 490 RVA: 0x00018D4C File Offset: 0x00016F4C
|
||||
public void RnextSelf()
|
||||
{
|
||||
int num = this.orient;
|
||||
this.orient = this.triangle.neighbors[num].orient;
|
||||
this.triangle = this.triangle.neighbors[num].triangle;
|
||||
this.orient = Otri.plus1Mod3[this.orient];
|
||||
num = this.orient;
|
||||
this.orient = this.triangle.neighbors[num].orient;
|
||||
this.triangle = this.triangle.neighbors[num].triangle;
|
||||
}
|
||||
|
||||
// Token: 0x060001EB RID: 491 RVA: 0x00018DEC File Offset: 0x00016FEC
|
||||
public void Rprev(ref Otri o2)
|
||||
{
|
||||
o2.triangle = this.triangle.neighbors[this.orient].triangle;
|
||||
o2.orient = this.triangle.neighbors[this.orient].orient;
|
||||
o2.orient = Otri.minus1Mod3[o2.orient];
|
||||
int num = o2.orient;
|
||||
o2.orient = o2.triangle.neighbors[num].orient;
|
||||
o2.triangle = o2.triangle.neighbors[num].triangle;
|
||||
}
|
||||
|
||||
// Token: 0x060001EC RID: 492 RVA: 0x00018E8C File Offset: 0x0001708C
|
||||
public void RprevSelf()
|
||||
{
|
||||
int num = this.orient;
|
||||
this.orient = this.triangle.neighbors[num].orient;
|
||||
this.triangle = this.triangle.neighbors[num].triangle;
|
||||
this.orient = Otri.minus1Mod3[this.orient];
|
||||
num = this.orient;
|
||||
this.orient = this.triangle.neighbors[num].orient;
|
||||
this.triangle = this.triangle.neighbors[num].triangle;
|
||||
}
|
||||
|
||||
// Token: 0x060001ED RID: 493 RVA: 0x00018F29 File Offset: 0x00017129
|
||||
public Vertex Org()
|
||||
{
|
||||
return this.triangle.vertices[Otri.plus1Mod3[this.orient]];
|
||||
}
|
||||
|
||||
// Token: 0x060001EE RID: 494 RVA: 0x00018F43 File Offset: 0x00017143
|
||||
public Vertex Dest()
|
||||
{
|
||||
return this.triangle.vertices[Otri.minus1Mod3[this.orient]];
|
||||
}
|
||||
|
||||
// Token: 0x060001EF RID: 495 RVA: 0x00018F5D File Offset: 0x0001715D
|
||||
public Vertex Apex()
|
||||
{
|
||||
return this.triangle.vertices[this.orient];
|
||||
}
|
||||
|
||||
// Token: 0x060001F0 RID: 496 RVA: 0x00018F71 File Offset: 0x00017171
|
||||
public void SetOrg(Vertex ptr)
|
||||
{
|
||||
this.triangle.vertices[Otri.plus1Mod3[this.orient]] = ptr;
|
||||
}
|
||||
|
||||
// Token: 0x060001F1 RID: 497 RVA: 0x00018F8C File Offset: 0x0001718C
|
||||
public void SetDest(Vertex ptr)
|
||||
{
|
||||
this.triangle.vertices[Otri.minus1Mod3[this.orient]] = ptr;
|
||||
}
|
||||
|
||||
// Token: 0x060001F2 RID: 498 RVA: 0x00018FA7 File Offset: 0x000171A7
|
||||
public void SetApex(Vertex ptr)
|
||||
{
|
||||
this.triangle.vertices[this.orient] = ptr;
|
||||
}
|
||||
|
||||
// Token: 0x060001F3 RID: 499 RVA: 0x00018FBC File Offset: 0x000171BC
|
||||
public void Bond(ref Otri o2)
|
||||
{
|
||||
this.triangle.neighbors[this.orient].triangle = o2.triangle;
|
||||
this.triangle.neighbors[this.orient].orient = o2.orient;
|
||||
o2.triangle.neighbors[o2.orient].triangle = this.triangle;
|
||||
o2.triangle.neighbors[o2.orient].orient = this.orient;
|
||||
}
|
||||
|
||||
// Token: 0x060001F4 RID: 500 RVA: 0x0001904D File Offset: 0x0001724D
|
||||
public void Dissolve()
|
||||
{
|
||||
this.triangle.neighbors[this.orient].triangle = Mesh.dummytri;
|
||||
this.triangle.neighbors[this.orient].orient = 0;
|
||||
}
|
||||
|
||||
// Token: 0x060001F5 RID: 501 RVA: 0x0001908B File Offset: 0x0001728B
|
||||
public void Copy(ref Otri o2)
|
||||
{
|
||||
o2.triangle = this.triangle;
|
||||
o2.orient = this.orient;
|
||||
}
|
||||
|
||||
// Token: 0x060001F6 RID: 502 RVA: 0x000190A5 File Offset: 0x000172A5
|
||||
public bool Equal(Otri o2)
|
||||
{
|
||||
return this.triangle == o2.triangle && this.orient == o2.orient;
|
||||
}
|
||||
|
||||
// Token: 0x060001F7 RID: 503 RVA: 0x000190C5 File Offset: 0x000172C5
|
||||
public void Infect()
|
||||
{
|
||||
this.triangle.infected = true;
|
||||
}
|
||||
|
||||
// Token: 0x060001F8 RID: 504 RVA: 0x000190D3 File Offset: 0x000172D3
|
||||
public void Uninfect()
|
||||
{
|
||||
this.triangle.infected = false;
|
||||
}
|
||||
|
||||
// Token: 0x060001F9 RID: 505 RVA: 0x000190E1 File Offset: 0x000172E1
|
||||
public bool IsInfected()
|
||||
{
|
||||
return this.triangle.infected;
|
||||
}
|
||||
|
||||
// Token: 0x060001FA RID: 506 RVA: 0x000190EE File Offset: 0x000172EE
|
||||
public static bool IsDead(Triangle tria)
|
||||
{
|
||||
return tria.neighbors[0].triangle == null;
|
||||
}
|
||||
|
||||
// Token: 0x060001FB RID: 507 RVA: 0x00019104 File Offset: 0x00017304
|
||||
public static void Kill(Triangle tria)
|
||||
{
|
||||
tria.neighbors[0].triangle = null;
|
||||
tria.neighbors[2].triangle = null;
|
||||
}
|
||||
|
||||
// Token: 0x060001FC RID: 508 RVA: 0x0001912A File Offset: 0x0001732A
|
||||
public void SegPivot(ref Osub os)
|
||||
{
|
||||
os = this.triangle.subsegs[this.orient];
|
||||
}
|
||||
|
||||
// Token: 0x060001FD RID: 509 RVA: 0x00019148 File Offset: 0x00017348
|
||||
public void SegBond(ref Osub os)
|
||||
{
|
||||
this.triangle.subsegs[this.orient] = os;
|
||||
os.seg.triangles[os.orient] = this;
|
||||
}
|
||||
|
||||
// Token: 0x060001FE RID: 510 RVA: 0x00019182 File Offset: 0x00017382
|
||||
public void SegDissolve()
|
||||
{
|
||||
this.triangle.subsegs[this.orient].seg = Mesh.dummysub;
|
||||
}
|
||||
|
||||
// Token: 0x060001FF RID: 511 RVA: 0x000191A4 File Offset: 0x000173A4
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
static Otri()
|
||||
{
|
||||
int[] array = new int[3];
|
||||
array[0] = 1;
|
||||
array[1] = 2;
|
||||
Otri.plus1Mod3 = array;
|
||||
Otri.minus1Mod3 = new int[] { 2, 0, 1 };
|
||||
}
|
||||
|
||||
// Token: 0x04000118 RID: 280
|
||||
public Triangle triangle;
|
||||
|
||||
// Token: 0x04000119 RID: 281
|
||||
public int orient;
|
||||
|
||||
// Token: 0x0400011A RID: 282
|
||||
private static readonly int[] plus1Mod3;
|
||||
|
||||
// Token: 0x0400011B RID: 283
|
||||
private static readonly int[] minus1Mod3;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user