IfcToolbox
IfcToolbox copied to clipboard
Optimizer deletes materials
I launched the optimizer on the test file and I realized that it deleted materials.
Ifc2x3_SampleCastle
using IfcToolbox.Tools.Configurations;
using IfcToolbox.Tools.Processors;
Console.WriteLine("Optimizing the IFC file");
var filePath = args[0];
IConfigOptimize config = ConfigFactory.CreateConfigOptimize();
config.PrecisionOpen = true;
config.Precision = 4;
config.OptimizePoint = true;
config.OptimizePointList = true;
config.MergeOpen = true;
config.MergeOnlyResources = true;
config.MergeReversedEntities = true;
var result = OptimizerProcessor.Process(filePath, config, true);
Console.WriteLine(result.Success ? "Optimized successfully": "Could not optimized" );