コード例 #1
0
        public void Add(DynamicArray <Vector3> vertices, DynamicArray <int> triangles)
        {
            var vertexLayout = new MeshLayout.Layout(this.vertices.Count, vertices.Count);
            var indexLayout  = new MeshLayout.Layout(this.indices.Count, triangles.Count);

            this.vertices.Add(vertices);
            this.indices.Add(triangles);

            this.layouts.Add(new MeshLayout(vertexLayout, indexLayout));
        }
コード例 #2
0
        public void Add(NativePlainMesh mesh)
        {
            var vertexLayout = new MeshLayout.Layout(this.vertices.Count, mesh.vertices.Length);
            var indexLayout  = new MeshLayout.Layout(this.indices.Count, mesh.triangles.Length);

            this.vertices.Add(mesh.vertices);
            this.indices.Add(mesh.triangles);

            this.layouts.Add(new MeshLayout(vertexLayout, indexLayout));
        }