In [1]:
length = 10
height = (length**2 - (length/2)**2)**0.5
x = [ 0 , length , length/2 , length/2+length , length , 2*length , (5/2)*length , 3*length , (7/2)*length , 3*length , 4*length ]
y = [ 0 , 0 , -height , -height , -2*height , -2*height , -height , -2*height , -height , 0 , 0 ]
In [2]:
import matplotlib.pyplot as plt
plt.scatter(x, y)
Out[2]:
In [3]:
%load_ext autoreload
%autoreload 2
In [4]:
import numpy as np
from city import *
In [5]:
coordinates = np.array([x,y]).T
print(coordinates)
In [ ]:
print(my_plan.triangles)
In [11]:
my_plan = Plan(coordinates, length)
my_plan.define_triangles()
my_plan.get_all_sides();
In [14]:
my_plan.try_triangles()
In [19]:
my_plan.refine_mesh()
my_plan.plot_triangles()
Out[19]:
End of notebook.
© Copyright 2024 MUDE TU Delft.
This work is licensed under a CC BY 4.0 License.