public void StartLane(Pair <int> edge) { currentLane = new BuildingLane { Edge = edge, }; }
private IExplicitModel BuildLaneModel(BuildingLane lane) { var vertices = lane.GlobalPath .Where(x => x.P0.X != x.P2.X) .Select(x => ApplyDisambiguator(x, lane.Disambiguator)) .SelectMany(x => x.ToEnumPolyline(0.01f)) .Select(x => new VertexPos(x)) .ToArray(); return(ExplicitModel.FromVertices(vertices, null, ExplicitModelPrimitiveTopology.LineStrip)); }