96 lines
2.0 KiB
C#
96 lines
2.0 KiB
C#
using System;
|
|
using TriangleNet.Geometry;
|
|
|
|
namespace TriangleNet.Data
|
|
{
|
|
// Token: 0x02000038 RID: 56
|
|
public class Segment : ISegment
|
|
{
|
|
// Token: 0x06000200 RID: 512 RVA: 0x000191CC File Offset: 0x000173CC
|
|
public Segment()
|
|
{
|
|
this.subsegs = new Osub[2];
|
|
this.subsegs[0].seg = Mesh.dummysub;
|
|
this.subsegs[1].seg = Mesh.dummysub;
|
|
this.vertices = new Vertex[4];
|
|
this.triangles = new Otri[2];
|
|
this.triangles[0].triangle = Mesh.dummytri;
|
|
this.triangles[1].triangle = Mesh.dummytri;
|
|
this.boundary = 0;
|
|
}
|
|
|
|
// Token: 0x17000086 RID: 134
|
|
// (get) Token: 0x06000201 RID: 513 RVA: 0x00019262 File Offset: 0x00017462
|
|
public int P0
|
|
{
|
|
get
|
|
{
|
|
return this.vertices[0].id;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000087 RID: 135
|
|
// (get) Token: 0x06000202 RID: 514 RVA: 0x00019271 File Offset: 0x00017471
|
|
public int P1
|
|
{
|
|
get
|
|
{
|
|
return this.vertices[1].id;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000088 RID: 136
|
|
// (get) Token: 0x06000203 RID: 515 RVA: 0x00019280 File Offset: 0x00017480
|
|
public int Boundary
|
|
{
|
|
get
|
|
{
|
|
return this.boundary;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000204 RID: 516 RVA: 0x00019288 File Offset: 0x00017488
|
|
public Vertex GetVertex(int index)
|
|
{
|
|
return this.vertices[index];
|
|
}
|
|
|
|
// Token: 0x06000205 RID: 517 RVA: 0x00019292 File Offset: 0x00017492
|
|
public ITriangle GetTriangle(int index)
|
|
{
|
|
if (this.triangles[index].triangle != Mesh.dummytri)
|
|
{
|
|
return this.triangles[index].triangle;
|
|
}
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06000206 RID: 518 RVA: 0x000192BF File Offset: 0x000174BF
|
|
public override int GetHashCode()
|
|
{
|
|
return this.hash;
|
|
}
|
|
|
|
// Token: 0x06000207 RID: 519 RVA: 0x000192C7 File Offset: 0x000174C7
|
|
public override string ToString()
|
|
{
|
|
return string.Format("SID {0}", this.hash);
|
|
}
|
|
|
|
// Token: 0x0400011C RID: 284
|
|
internal int hash;
|
|
|
|
// Token: 0x0400011D RID: 285
|
|
internal Osub[] subsegs;
|
|
|
|
// Token: 0x0400011E RID: 286
|
|
internal Vertex[] vertices;
|
|
|
|
// Token: 0x0400011F RID: 287
|
|
internal Otri[] triangles;
|
|
|
|
// Token: 0x04000120 RID: 288
|
|
internal int boundary;
|
|
}
|
|
}
|