private void EnsureDeduplicationMap() { // Makes sure that we have an original -> duplicate vertex index map to work with. // If we don't, it creates an identity mapping between the original and the Collada vertices. // To deduplicate GR2 vertex data, Deduplicate() should be called before any Collada export call. if (Deduplicator == null) { Deduplicator = new VertexDeduplicator(); Deduplicator.MakeIdentityMapping(Vertices); } }
public void Deduplicate() { Deduplicator = new VertexDeduplicator(); Deduplicator.Deduplicate(Vertices); }