private void createObject() { var graph = new Graph(engine.GetProjectiles(), engine.GetConnectors()); mesh.Positions = graph.GetPoints(); mesh.TriangleIndices = graph.GetTriangles(); }
public BridgeVisualization(IEngineWithConnectors engine, Color color) { this.engine = engine; this.color = color; foreach (var proj in engine.GetProjectiles()) { AddObject(new SingleParticle(proj)); } }