Пример #1
0
        public static GraphPlotter Create(MeshFilter meshFilter, int iterations)
        {
            var plotter = new GraphPlotter {
                meshFilter = meshFilter
            };

            plotter.meshFilter.sharedMesh = new Mesh();
            plotter.RebuildMeshCache(iterations);

            return(plotter);
        }
Пример #2
0
        public static GraphPlotter Create(int iterations)
        {
            var plotter = new GraphPlotter {
                meshFilter = (new GameObject("GraphPlotter")).AddComponent <MeshFilter>()
            };

            plotter.meshFilter.sharedMesh = new Mesh();

            plotter.gameObject.AddComponent <MeshRenderer>();

            plotter.RebuildMeshCache(iterations);

            return(plotter);
        }
Пример #3
0
        public static GraphPlotter Create( int iterations )
        {
            var plotter = new GraphPlotter {meshFilter = ( new GameObject ( "GraphPlotter" ) ).AddComponent <MeshFilter>()};

            plotter.meshFilter.sharedMesh = new Mesh();

            plotter.gameObject.AddComponent<MeshRenderer>();

            plotter.RebuildMeshCache( iterations );

            return plotter;
        }
Пример #4
0
        public static GraphPlotter Create( MeshFilter meshFilter, int iterations )
        {
            var plotter = new GraphPlotter { meshFilter = meshFilter };

            plotter.meshFilter.sharedMesh = new Mesh();
            plotter.RebuildMeshCache( iterations );

            return plotter;
        }