Пример #1
0
        private static ExtrudeShape GetSimpleRoadShape()
        {
            Vector2[] vertices =
            {
                new Vector2(-1f, 0),
                new Vector2(0,   0),
                new Vector2(1f, 0)
            };
            int[] lines = { 0, 1, 1, 2 };
            var   shape = new ExtrudeShape(vertices, lines);

            return(shape);
        }
Пример #2
0
 public SplineMesh(ExtrudeShape shape)
 {
     this.shape = shape;
 }