Internal
Creates a new AcDbRenderingCache instance.
Static
instanceGets the singleton instance of the rendering cache.
The singleton instance of AcDbRenderingCache
Draws a block table record and optionally caches the result.
This method renders the block table record using the specified renderer and color, and optionally stores the result in the cache for future use.
The renderer to use for drawing
The block table record to draw
The color to use for rendering
Whether to cache the rendering result (default: true)
Optional
transform: AcGeMatrix3dOptional transformation matrix to apply
Optional
normal: AcGeVector3dOptional normal vector
The rendered entity
Gets rendering results with the specified key.
The key of the rendering results
The rendering results with the specified key, or undefined if not found
Stores rendering results of a block in the cache.
The key for the rendering results
The rendering results to store
The stored rendering results (deep cloned)
Internal class used to cache rendered results to avoid duplicated rendering.
This class can be used to improve performance when rendering block references. Because different colors will result in different materials, the block name and color are used together to create the cache key.
Example