Exemplo n.º 1
0
        /// <summary>
        /// </summary>
        /// <param name="name">
        /// </param>
        /// <param name="points">
        /// </param>
        /// <param name="scene">
        /// </param>
        /// <param name="updatable">
        /// </param>
        /// <returns>
        /// </returns>
        public static LinesMesh CreateLines(string name, Array <Vector3> points, Scene scene, bool updatable = false)
        {
            var lines      = new LinesMesh(name, scene);
            var vertexData = VertexData.CreateLines(points);

            vertexData.applyToMesh(lines, updatable);
            return(lines);
        }
        public InstancedLinesMesh(
            string name, LinesMesh source
            ) : base()
        {
            var entity = EventHorizonBlazorInterop.New(
                new string[] { "BABYLON", "InstancedLinesMesh" },
                name, source
                );

            ___guid = entity.___guid;
        }
Exemplo n.º 3
0
        public static async ValueTask <LinesMesh> NewLinesMesh(
            string name, Scene scene = null, Node parent = null, LinesMesh source = null, System.Nullable <bool> doNotCloneChildren = null, System.Nullable <bool> useVertexColor = null, System.Nullable <bool> useVertexAlpha = null
            )
        {
            var entity = await EventHorizonBlazorInterop.New(
                new string[] { "BABYLON", "LinesMesh" },
                name, scene, parent, source, doNotCloneChildren, useVertexColor, useVertexAlpha
                );

            return(new LinesMesh(entity));
        }
Exemplo n.º 4
0
        public static async ValueTask <InstancedLinesMesh> NewInstancedLinesMesh(
            string name, LinesMesh source
            )
        {
            var entity = await EventHorizonBlazorInterop.New(
                new string[] { "BABYLON", "InstancedLinesMesh" },
                name, source
                );

            return(new InstancedLinesMesh(entity));
        }
        public LinesMesh(
            string name, Scene scene = null, Node parent = null, LinesMesh source = null, System.Nullable <bool> doNotCloneChildren = null, System.Nullable <bool> useVertexColor = null, System.Nullable <bool> useVertexAlpha = null
            ) : base()
        {
            var entity = EventHorizonBlazorInterop.New(
                new string[] { "BABYLON", "LinesMesh" },
                name, scene, parent, source, doNotCloneChildren, useVertexColor, useVertexAlpha
                );

            ___guid = entity.___guid;
        }