void instalationplan() { var flight = new FlightsController(); Flightplan k = new Flightplan(); segments newseg = new segments(); newseg.setall(22, 22, 2000); k.company_name = "test"; k.initial_location = new InitialLocation(); DateTime tt = new DateTime(); tt = DateTime.Now; k.initial_location.setalll(22, 22, tt); k.segments = new System.Collections.Generic.List <segments>(); k.segments.Add(newseg); // flightplanmanager.flights.Add(k); flightplancontrol.Post(k); }
//Debug.Log("BuildMesh: " + segments.Count); CreateShape(segments, width);
private static (KtSegments2D result, IEnumerable <KtSegments2D> remaining) ConnectToListOfSegments(this KtSegments2D segments, IEnumerable <KtSegments2D> listOfSegments) => (listOfSegments?.Any() != true || segments.IsRegion()) ? (segments, listOfSegments) : ConnectToLeftAndRight(segments, listOfSegments);