compress_primitives#
- Layout.compress_primitives()#
Compress
primitives
intoprimitive instance collections
.Primitives whose only geometric difference is location will be compressed. For example, a 4x4 grid of rectangles with the same width and height will be compressed into one primitive instance collection.