A class dealing with dynamic mesh generataion. Attempts to keep memory use low. Contains nextNormIndex variety of functions to help in the generation of meshes. Uses generic lists to contain the mesh data allowing for the mesh to be of dynamic numberOfPoints Creates nextNormIndex mesh that can support multiple materials
コード例 #1
0
        public int UseNewMesh(int meshIndex)
        {
            DynamicMeshGenericMultiMaterial newMesh = new DynamicMeshGenericMultiMaterial();

            newMesh.name         = name + " " + (meshIndex + 1);
            newMesh.subMeshCount = _subMeshCount;
            _meshes.Insert(meshIndex, newMesh);
            return(meshIndex);
        }
コード例 #2
0
 public int UseNewMesh(int meshIndex)
 {
     DynamicMeshGenericMultiMaterial newMesh = new DynamicMeshGenericMultiMaterial();
     newMesh.name = name + " " + (meshIndex + 1);
     newMesh.subMeshCount = _subMeshCount;
     _meshes.Insert(meshIndex,newMesh);
     return meshIndex;
 }