Описание
Generate simple graphs based on simplified gravitational rigid objects.
Drag to draw a smooth polygon where many rigid objects will be generated randomly. If you click or draw a very small polygon, a large ellipse region will be used as the origin region instead. These objects will be attracted by gravitation among uniform spheres on them. Some objects will merge to generate a simple interesting graph after several seconds.
If an object intersects another object, we assume that they will stick together and form a new rigid body object immediately. Otherwise the gravitation or point-simplified torque between spheres in different rigid objects will be calculated to update the location or orientation of objects. The objects are updated with a simple leapfrog integration which is not expected to be accurate for a long time or large step.