void Awake() { Singleton = this; graph = new Graph(InitializeGraphBackend()); graphScene = new GraphScene(graph, graphScenePrefabs); ResultPanel.SetActive(false); ResultText.gameObject.SetActive(false); }
void Start() { graph = new Graph(InitializeGraphBackend()); graphScene = new GraphScene(graph, graphScenePrefabs); GenerateTestData(); graphScene.DrawGraph(); }
void Start() { shouldUpdate = true; graph = new Graph(InitializeGraphBackend()); graphScene = new GraphScene(graph, graphScenePrefabs); GenerateTestData(); graphScene.DrawGraph(); StartCoroutine(Begin()); }
public GraphView() { InitializeComponent(); SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint, true); g = CreateGraphics(); g.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias; scene = new GraphScene(g, this.BackColor); scene.AddDrawingObject(fpsTxt); childThread = new Thread(new ThreadStart(Draw)); childThread.Start(); }
public Sample1() : base(1024, 768, "Fusion3D.Net - Sample 1", false) { Scene1 = new GraphScene(); Console.WriteLine("Importing mesh."); Ent1 = ModelImport.ImportEntity("c:/media/chalet.obj"); Scene1.SetRoot(Ent1); Console.WriteLine("Imported: Sub:" + Ent1.SubCount); var e2 = Ent1.GetSub(0); Console.WriteLine("meshes:" + e2.MeshCount); Console.WriteLine("Verts:" + e2.GetMesh(0).NumVertices + " Indices:" + e2.GetMesh(0).NumIndices); }
private void ClearGraph() { while (GameObject.FindWithTag("Node") != null) { DestroyImmediate(GameObject.FindWithTag("Node")); } while (GameObject.FindWithTag("Edge") != null) { DestroyImmediate(GameObject.FindWithTag("Edge")); } nodes.Clear(); rels.Clear(); graph = new Graph(InitializeGraphBackend()); graphScene = new GraphScene(graph, graphScenePrefabs); }