Ejemplo n.º 1
0
 public void StartLane(Pair <int> edge)
 {
     currentLane = new BuildingLane
     {
         Edge = edge,
     };
 }
Ejemplo n.º 2
0
        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));
        }