using System.Collections.Generic; namespace NGS.MeshFusionPro; public class LODGroupsCombiner : ObjectsCombiner { private ICombinedMeshFactory _factory; private CombinedLODGroupMatcher _matcher; private int _vertexLimit; public LODGroupsCombiner(ICombinedMeshFactory factory, int vertexLimit) { _factory = factory; _matcher = new CombinedLODGroupMatcher(); _vertexLimit = vertexLimit; } protected override CombinedLODGroup CreateCombinedObject(LODGroupCombineSource source) { return CombinedLODGroup.Create(_factory, source.Settings, _vertexLimit); } protected override void CombineSources(CombinedLODGroup root, IList sources) { root.Combine(sources); } protected override CombinedObjectMatcher GetMatcher() { return _matcher; } }