MeshResource <MeshData> CreateMeshResource(int slice) { var meshData = new MeshData() { Randomness = FRandomizeIn[slice], Resolution = FResoIn[slice] }; return(MeshResource.Create(meshData, CreateMesh, UpdateMesh)); }
private MeshResource <Metaball> CreateMeshResource(int slice) { var metaball = new Metaball() { Position = FPositionIn[slice], Mass = FMassIn[slice] }; return(MeshResource.Create(metaball, CreateMesh)); }