Files
speckle-sharp-connectors/Converters/Revit/Speckle.Converters.RevitShared/Helpers/RevitToHostCacheSingleton.cs
T
Oğuzhan Koral fa31283d94 Chore(revit): Refactor material cache to ToHost ToSpeckle singletons (#262)
* A bit better

* Post conflict errors

* Remove old notes
2024-09-25 17:27:15 +03:00

13 lines
611 B
C#

namespace Speckle.Converters.RevitShared.Helpers;
public class RevitToHostCacheSingleton
{
/// <summary>
/// POC: Not sure is there a way to create it on "RevitHostObjectBuilder" with a scope instead singleton. For now we fill this dictionary and clear it on "RevitHostObjectBuilder".
/// Map extracted by revit material baker to be able to use it in converter.
/// This is needed because we cannot set materials for meshes in connector.
/// They needed to be set while creating "TessellatedFace".
/// </summary>
public Dictionary<string, DB.ElementId> MaterialsByObjectId { get; } = new();
}