Beispiel #1
0
        public bool IsMatch(ModelInfo modelInfo)
        {
            switch (Mode)
            {
            case ModelOverviewMode.ReadWrite:
                return(ReadWriteEnable == modelInfo.ReadWriteEnable);

            case ModelOverviewMode.ImportMaterial:
                return(ImportMaterials == modelInfo.ImportMaterials);

            case ModelOverviewMode.OptimizeMesh:
                return(OptimizeMesh == modelInfo.OptimizeMesh);

            case ModelOverviewMode.MeshData:
                return(MeshDataID == modelInfo.GetMeshDataID());

            case ModelOverviewMode.MeshCompress:
                return(MeshCompression == modelInfo.MeshCompression);

            case ModelOverviewMode.VertexCount:
                return(VertexRangeStr == modelInfo.GetVertexRangeStr());

            case ModelOverviewMode.TriangleCount:
                return(TriangleRangeStr == modelInfo.GetTriangleRangeStr());
            }
            return(false);
        }
Beispiel #2
0
        public static ModelOverviewData CreateNew(ModelOverviewMode mode, ModelInfo modelInfo)
        {
            ModelOverviewData retData = new ModelOverviewData();

            retData.Mode             = mode;
            retData.ReadWriteEnable  = modelInfo.ReadWriteEnable;
            retData.ImportMaterials  = modelInfo.ImportMaterials;
            retData.OptimizeMesh     = modelInfo.OptimizeMesh;
            retData.MeshDataID       = modelInfo.GetMeshDataID();
            retData.MeshDataStr      = ModelInfo.GetMeshDataStr(retData.MeshDataID);
            retData.MeshCompression  = modelInfo.MeshCompression;
            retData.VertexRangeStr   = modelInfo.GetVertexRangeStr();
            retData.TriangleRangeStr = modelInfo.GetTriangleRangeStr();

            return(retData);
        }