private static void addConnectorsToVisualizer(VisualizerNamespace.Visualizer viz, BridgeEngineAdapter adapter)
        {
            var projectiles = adapter.GetProjectiles();

            foreach (var connect in adapter.Connectors)
            {
                viz.AddConnector(projectiles[connect.Item1], projectiles[connect.Item2]);
            }
        }
Esempio n. 2
0
        private static void addConnectorsToVisualizer(VisualizerNamespace.Visualizer viz, ParticleStructure structure,
                                                      FEEngineAdapter adapter)
        {
            var projectiles = adapter.GetProjectiles();

            foreach (var connect in structure.Connectors)
            {
                viz.AddConnector(projectiles[connect.Item1], projectiles[connect.Item2]);
            }
        }