Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimizer deletes materials #17

Open
denizmaral opened this issue Sep 26, 2023 · 0 comments
Open

Optimizer deletes materials #17

denizmaral opened this issue Sep 26, 2023 · 0 comments

Comments

@denizmaral
Copy link

denizmaral commented Sep 26, 2023

I launched the optimizer on the test file and I realized that it deleted materials.
Ifc2x3_SampleCastle
image

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" );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant