class Model
package geometrize
Model for the optimization/fitting algorithm.
Constructor
Variables
Methods
addShape (shape:Shape, alpha:Int):ShapeResult
Adds a shape to the model.
Parameters:
shape | The shape to add. |
---|---|
alpha | The alpha/opacity of the shape. |
Returns:
Data about the shape just added to the model.
step (shapeTypes:Array<ShapeType>, alpha:Int, n:Int, age:Int):Array<ShapeResult>
Steps the optimization/fitting algorithm.
Parameters:
shapeType | The shape types to use. |
---|---|
alpha | The alpha of the shape. |
n | The number of shapes to try. |
age | The number of mutations to apply to each shape. |
Returns:
An array containing data about the shapes added to the model in this step.