Esempio n. 1
0
        MeshResource <MeshData> CreateMeshResource(int slice)
        {
            var meshData = new MeshData()
            {
                Randomness = FRandomizeIn[slice], Resolution = FResoIn[slice]
            };

            return(MeshResource.Create(meshData, CreateMesh, UpdateMesh));
        }
Esempio n. 2
0
        private MeshResource <Metaball> CreateMeshResource(int slice)
        {
            var metaball = new Metaball()
            {
                Position = FPositionIn[slice],
                Mass     = FMassIn[slice]
            };

            return(MeshResource.Create(metaball, CreateMesh));
        }