This commit is contained in:
niko
2026-04-12 16:51:38 +02:00
parent 1b6f6d81d0
commit c12fbe3fc6
17828 changed files with 2994770 additions and 0 deletions
@@ -0,0 +1,183 @@
using System;
using System.Collections.Generic;
using Cpp2IlInjected;
using RecRoom.Core.Screens.PlayerController;
using UnityEngine;
namespace Delaunay
{
// Token: 0x0200171C RID: 5916
[Token(Token = "0x200171C")]
[RequireComponent(typeof(MeshFilter), typeof(MeshRenderer))]
public class Delaunay3DTestComponent : MonoBehaviour
{
// Token: 0x0600872E RID: 34606 RVA: 0x001C9970 File Offset: 0x001C7B70
[Token(Token = "0x600872E")]
[Address(RVA = "0x1BE0C60", Offset = "0x1BDFC60", VA = "0x181BE0C60")]
private void Reset()
{
MeshFilter component = base.GetComponent<MeshFilter>();
this.meshFilter = component;
}
// Token: 0x0600872F RID: 34607 RVA: 0x001C998C File Offset: 0x001C7B8C
[Token(Token = "0x600872F")]
[Address(RVA = "0x1BDFD40", Offset = "0x1BDED40", VA = "0x181BDFD40")]
[ContextMenu("Generate Delaunay Graph")]
public void GenerateDelaunayGraph()
{
HMBJKFIMOFL hmbjkfimofl = new HMBJKFIMOFL();
}
// Token: 0x06008730 RID: 34608 RVA: 0x001C99A8 File Offset: 0x001C7BA8
[Token(Token = "0x6008730")]
[Address(RVA = "0x1BE09C0", Offset = "0x1BDF9C0", VA = "0x181BE09C0")]
private void OnValidate()
{
PlayerAnimation3DBlendedPoseSet playerAnimation3DBlendedPoseSet = this.assignPoseSetToDebug;
int num = 0;
if (playerAnimation3DBlendedPoseSet != num)
{
List<AnimationVertex> list = this.assignPoseSetToDebug.animationVertices;
this.animationVertices = list;
this.assignPoseSetToDebug = (ulong)0L;
HMBJKFIMOFL hmbjkfimofl = new HMBJKFIMOFL();
}
}
// Token: 0x06008731 RID: 34609 RVA: 0x001C99F0 File Offset: 0x001C7BF0
[Token(Token = "0x6008731")]
[Address(RVA = "0x1BE0AB0", Offset = "0x1BDFAB0", VA = "0x181BE0AB0")]
[ContextMenu("Random Delaunay Graph")]
public void RandomizeGraphVertices()
{
this.animationVertices.Clear();
int num = 0;
if (this.pointCount > num)
{
List<AnimationVertex> list = this.animationVertices;
AnimationVertex animationVertex = new AnimationVertex();
float z = global::UnityEngine.Random.insideUnitSphere.z;
Vector3 vector;
float z2 = vector.z;
list.Add(animationVertex);
num++;
}
HMBJKFIMOFL hmbjkfimofl = new HMBJKFIMOFL();
}
// Token: 0x06008732 RID: 34610 RVA: 0x001C9A4C File Offset: 0x001C7C4C
[Token(Token = "0x6008732")]
[Address(RVA = "0x1BE0CA0", Offset = "0x1BDFCA0", VA = "0x181BE0CA0")]
[ContextMenu("Random Delaunay Mesh")]
public void TestDelaunayMesh()
{
List<Vector3> list = new List(this.pointCount);
int num = 0;
if (this.pointCount > num)
{
float z = global::UnityEngine.Random.insideUnitSphere.z;
num++;
}
HMBJKFIMOFL hmbjkfimofl = new HMBJKFIMOFL();
bool flag = this.discardInteriorTriangles;
MeshFilter meshFilter = this.meshFilter;
hmbjkfimofl.GFGFAKDLCLJ(list, meshFilter, flag);
}
// Token: 0x06008733 RID: 34611 RVA: 0x001C9AA8 File Offset: 0x001C7CA8
[Token(Token = "0x6008733")]
[Address(RVA = "0x41CFF0", Offset = "0x41BFF0", VA = "0x18041CFF0")]
public void SetVertices(List<AnimationVertex> GBNAMEDMFNJ)
{
this.animationVertices = GBNAMEDMFNJ;
}
// Token: 0x06008734 RID: 34612 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x6008734")]
[Address(RVA = "0x1BDFDC0", Offset = "0x1BDEDC0", VA = "0x181BDFDC0")]
private void OnDrawGizmos()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06008735 RID: 34613 RVA: 0x001C9ABC File Offset: 0x001C7CBC
[Token(Token = "0x6008735")]
[Address(RVA = "0x1BE0D90", Offset = "0x1BDFD90", VA = "0x181BE0D90")]
public Delaunay3DTestComponent()
{
List<AnimationVertex> list = new List();
AnimationVertex animationVertex = new AnimationVertex();
float z = Vector3.zero.z;
list.Add(animationVertex);
AnimationVertex animationVertex2 = new AnimationVertex();
float z2 = Vector3.left.z;
list.Add(animationVertex2);
AnimationVertex animationVertex3 = new AnimationVertex();
float z3 = Vector3.right.z;
list.Add(animationVertex3);
AnimationVertex animationVertex4 = new AnimationVertex();
float z4 = Vector3.down.z;
list.Add(animationVertex4);
AnimationVertex animationVertex5 = new AnimationVertex();
float z5 = Vector3.up.z;
list.Add(animationVertex5);
AnimationVertex animationVertex6 = new AnimationVertex();
float z6 = Vector3.back.z;
list.Add(animationVertex6);
AnimationVertex animationVertex7 = new AnimationVertex();
float z7 = Vector3.forward.z;
list.Add(animationVertex7);
this.animationVertices = list;
base..ctor();
}
// Token: 0x04005936 RID: 22838
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4005936")]
[Header("Shared settings for randomization")]
public int pointCount = (int)((ulong)32L);
// Token: 0x04005937 RID: 22839
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4005937")]
[Header("Mesh Options")]
public MeshFilter meshFilter;
// Token: 0x04005938 RID: 22840
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4005938")]
public bool discardInteriorTriangles;
// Token: 0x04005939 RID: 22841
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x4005939")]
[SerializeField]
[Header("Graph Options (Randomize is in gear menu)")]
private PlayerAnimation3DBlendedPoseSet assignPoseSetToDebug;
// Token: 0x0400593A RID: 22842
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x400593A")]
[SerializeField]
private List<AnimationVertex> animationVertices;
// Token: 0x0400593B RID: 22843
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x400593B")]
[SerializeField]
private List<Tetrahedron> tetrahedra;
// Token: 0x0400593C RID: 22844
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x400593C")]
[SerializeField]
private List<int> exteriorTriangleIndices;
// Token: 0x0400593D RID: 22845
[FieldOffset(Offset = "0x50")]
[Token(Token = "0x400593D")]
[SerializeField]
private Gradient gizmoColorByBarycentricWeight;
}
}
+132
View File
@@ -0,0 +1,132 @@
using System;
using System.Collections.Generic;
using Cpp2IlInjected;
using UnityEngine;
namespace Delaunay
{
// Token: 0x02001718 RID: 5912
[Token(Token = "0x2001718")]
[Serializable]
public class Tetrahedron
{
// Token: 0x0600871B RID: 34587 RVA: 0x001C9424 File Offset: 0x001C7624
[Token(Token = "0x600871B")]
[Address(RVA = "0x1BE78A0", Offset = "0x1BE68A0", VA = "0x181BE78A0")]
public Tetrahedron()
{
int[] array = new int[4];
this.vertexIndices = array;
base..ctor();
}
// Token: 0x0600871C RID: 34588 RVA: 0x001C9448 File Offset: 0x001C7648
[Token(Token = "0x600871C")]
[Address(RVA = "0x1BE78F0", Offset = "0x1BE68F0", VA = "0x181BE78F0")]
public Tetrahedron(int IHICIJCIAJB, int AKGEMLABIGE, int KBFPCPNAMIH, int DECFDMEJLIG)
{
int[] array = new int[4];
this.vertexIndices = array;
base..ctor();
this.vertexIndices[0] = IHICIJCIAJB;
this.vertexIndices[0] = AKGEMLABIGE;
this.vertexIndices[1] = KBFPCPNAMIH;
int[] array2 = this.vertexIndices;
}
// Token: 0x0600871D RID: 34589 RVA: 0x001C94A0 File Offset: 0x001C76A0
[Token(Token = "0x600871D")]
[Address(RVA = "0x2600A80", Offset = "0x25FFA80", VA = "0x182600A80")]
public void EAEAIJOAJEA<VertexT, T>(List<VertexT> BDJENLHNDON) where VertexT : Vertex<T>
{
int[] array = this.vertexIndices;
int[] array2 = this.vertexIndices;
int[] array3 = this.vertexIndices;
int[] array4 = this.vertexIndices;
this.D.z = BDJENLHNDON;
float z = this.C.z;
float z2 = this.B.z;
float z3 = this.A.z;
}
// Token: 0x0600871E RID: 34590 RVA: 0x001C9504 File Offset: 0x001C7704
[Token(Token = "0x600871E")]
[Address(RVA = "0x1BE75D0", Offset = "0x1BE65D0", VA = "0x181BE75D0")]
public bool LIBPGFEBAFM(Vector3 KPLDEODOJID)
{
bool flag;
bool flag2;
bool flag3;
bool flag4;
if (!flag || !flag2 || !flag3 || flag4)
{
return;
}
}
// Token: 0x0600871F RID: 34591 RVA: 0x001C9528 File Offset: 0x001C7728
[Token(Token = "0x600871F")]
[Address(RVA = "0x1BE7790", Offset = "0x1BE6790", VA = "0x181BE7790")]
public bool PKDBFBGOMCC(Vector3 KPLDEODOJID)
{
/*
An exception occurred when decompiling this method (0600871F)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Delaunay.Tetrahedron::PKDBFBGOMCC(UnityEngine.Vector3)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:float32(var_0_0B, ldfld:float32(Vector3::z, ldfld:Vector3[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3&](Tetrahedron::CircumCenter, ldloc:Tetrahedron(this))))
stloc:float32(var_1_12, ldfld:float32(Vector3::z, ldloc:Vector3[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3&](KPLDEODOJID)))
stloc:float32(var_3_19, ldfld:float32(Vector3::z, ldloc:Vector3[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3&](var_2)))
stloc:float32(var_5_20, ldfld:float32(Tetrahedron::CircumRadiusSquared, ldloc:Tetrahedron(this)))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
// Token: 0x04005928 RID: 22824
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4005928")]
[SerializeField]
public int[] vertexIndices;
// Token: 0x04005929 RID: 22825
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4005929")]
public Vector3 A;
// Token: 0x0400592A RID: 22826
[FieldOffset(Offset = "0x24")]
[Token(Token = "0x400592A")]
public Vector3 B;
// Token: 0x0400592B RID: 22827
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x400592B")]
public Vector3 C;
// Token: 0x0400592C RID: 22828
[FieldOffset(Offset = "0x3C")]
[Token(Token = "0x400592C")]
public Vector3 D;
// Token: 0x0400592D RID: 22829
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x400592D")]
public Vector3 CircumCenter;
// Token: 0x0400592E RID: 22830
[FieldOffset(Offset = "0x54")]
[Token(Token = "0x400592E")]
public float CircumRadiusSquared;
}
}
+29
View File
@@ -0,0 +1,29 @@
using System;
using Cpp2IlInjected;
using UnityEngine;
namespace Delaunay
{
// Token: 0x02001717 RID: 5911
[Token(Token = "0x2001717")]
[Serializable]
public class Vertex<T>
{
// Token: 0x0600871A RID: 34586 RVA: 0x001C9408 File Offset: 0x001C7608
[Token(Token = "0x600871A")]
[Address(RVA = "0x1CC5E40", Offset = "0x1CC4E40", VA = "0x181CC5E40")]
public Vertex()
{
}
// Token: 0x04005926 RID: 22822
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4005926")]
public T Data;
// Token: 0x04005927 RID: 22823
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4005927")]
public Vector3 Position;
}
}