Skip to content

CoulsonZhang/Semi-toric_Packing_Capacity

Repository files navigation

Semi-toric_Packing_Capacity

This repo is for saving the program for calculating, and showing the packing capacity of the Semi/toric.

Intro Page: https://math.illinois.edu/research/igl/projects/fall/2021/toric-and-semitoric-packing-capacities image

Program Flow Map

image

Function Usage

show_info(Vertices) is the entry function. (usage_entry.py)

By default, it shows one maximum situation. To show all possibilities, use show_info(Vertices, all = True) OR show_info(Vertices, True).

Input: 2D np array for list of vertices in Counterclockwise order get_info(Input) will display all related information regarding the input list of vertices

For example, the 2D polygon with vertices: (0,0); (13,-13); (13,4); (12,5); (8,7); (0,7) will be in the form of:

vertices = np.array([[0, 0],  [13, -13], [13, 4],
                     [12, 5], [8, 7],    [0, 7]])

utilities.show_info(vertices)

Notice: decimal or negative input are accepted

Project Poster

image