public class FrontChainPacker extends Object
The algorithm initialises circles in the boundary center and builds up the packing in a spiral pattern from this center until it reaches the rectangle boundary.
Constructor and Description |
---|
FrontChainPacker(float width,
float height,
float radiusMin,
float radiusMax)
Creates a FrontChainPacker instance.
|
FrontChainPacker(float width,
float height,
float radiusMin,
float radiusMax,
float offsetX,
float offsetY)
Creates a FrontChainPacker instance.
|
public FrontChainPacker(float width, float height, float radiusMin, float radiusMax)
Each circle in the output packing is prescribed a random radius between the range given.
width
- width of rectangle boundary to packheight
- height of rectangle boundary to packradiusMin
- minimum radius of circles in the packingradiusMax
- maximum radius of circles in the packing#FrontChainPacker(float, float, float, float, float, float)
public FrontChainPacker(float width, float height, float radiusMin, float radiusMax, float offsetX, float offsetY)
width
- width of rectangle boundary to packheight
- height of rectangle boundary to packradiusMin
- minimum radius of circles in the packingradiusMax
- maximum radius of circles in the packingFrontChainPacker(float, float, float, float)
public List<processing.core.PVector> getCircles()
Copyright © 2023. All rights reserved.