SkillAgentSearch skills...

Areafitter

Fit Multiple Smaller Rectangles Into Larger Rectangles or Images - Iterative Permutational Optimization Method

Install / Use

/learn @avaneev/Areafitter
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

areafitter

Rectangle Area Fitter, Fit Multiple Rectangle Areas Into Several Larger Rectangles

This algorithm can optimally fit a number of small rectangles into one or more larger rectangles. The algorithm works iteratively for the specified number of iterations. The algorithm was designed in a way to provide a better fit at the initial iterations, further iterations usually improve the result by a small margin only.

You can specify rectangle width, height and area constraints.

See the example.cpp file for a basic usage example.

View on GitHub
GitHub Stars9
CategoryDevelopment
Updated5mo ago
Forks3

Languages

C++

Security Score

87/100

Audited on Oct 9, 2025

No findings