OhadCohen97 / 2D-flooring-algorithm-with-variable-inputs

The algorithm flooring an area of 2D dimension matrix with variable inputs. For each rectangle, the values of his width and height are separately uniform distributed between 20 to 100 cm, with jumping of 10 cm. The width and height of the area are 10x10.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

2D-flooring-algorithm-with-variable-inputs

The algorithm flooring an area of 2D dimension matrix with variable inputs. For each rectangle, the values of his width and height are separately uniform distributed between 20 to 100 cm, with jumping of 10 cm. The width and height of the area are 10x10.

Running Example

create_input_to_ritzuf.py

Produces randomly rectangles according to the defined values.

ritzuf_room.py

The main algorithm whose function is to adjust the size of the rectangle and place it in the defined area.

Visualize.py

To display and illustrate the rectangles we have arranged inside a plot in varying colors.

About

The algorithm flooring an area of 2D dimension matrix with variable inputs. For each rectangle, the values of his width and height are separately uniform distributed between 20 to 100 cm, with jumping of 10 cm. The width and height of the area are 10x10.


Languages

Language:Python 100.0%