GH_Solver

public class GH_Solver

Constructors

GH_Solver

#
public GH_Solver()

GH_Solver

#
public GH_Solver(IEnumerable<RectangleF> boxes)
boxes (IEnumerable<RectangleF>)

Fields

m_boxes

#
protected List<RectangleF> m_boxes

m_region

#
protected RectangleF m_region

Properties

Region

#
public RectangleF Region { get; set; }

Methods

AddBox

#
public void AddBox(RectangleF box)
box (RectangleF)

Align_Bottom

#
public static List<RectangleF> Align_Bottom(RectangleF region, List<RectangleF> boxes)
region (RectangleF)
boxes (List<RectangleF>)

Align_Horizontal

#
public static List<RectangleF> Align_Horizontal(RectangleF region, List<RectangleF> boxes)
region (RectangleF)
boxes (List<RectangleF>)

Align_Left

#
public static List<RectangleF> Align_Left(RectangleF region, List<RectangleF> boxes)
region (RectangleF)
boxes (List<RectangleF>)

Align_Right

#
public static List<RectangleF> Align_Right(RectangleF region, List<RectangleF> boxes)
region (RectangleF)
boxes (List<RectangleF>)

Align_Top

#
public static List<RectangleF> Align_Top(RectangleF region, List<RectangleF> boxes)
region (RectangleF)
boxes (List<RectangleF>)

Align_Vertical

#
public static List<RectangleF> Align_Vertical(RectangleF region, List<RectangleF> boxes)
region (RectangleF)
boxes (List<RectangleF>)

CreateAutoRegion

#
public void CreateAutoRegion()

Distribute_Horizontal

#
public static List<RectangleF> Distribute_Horizontal(RectangleF region, List<RectangleF> boxes)
region (RectangleF)
boxes (List<RectangleF>)

Distribute_Vertical

#
public static List<RectangleF> Distribute_Vertical(RectangleF region, List<RectangleF> boxes)
region (RectangleF)
boxes (List<RectangleF>)

Inflate

#
public void Inflate(float x, float y)
x (float)
y (float)

Solve

#
public List<RectangleF> Solve(GH_Align align, GH_Distribute distribute)
align (GH_Align)
distribute (GH_Distribute)