0

I'm trying to carry out a task in which I'm required to calculate the projected area of this hull shape.

Hull shape

I have been able to fill out the area and this is the result.

Filled in area

I now need that filled in area as a numerical value. Surely there is a way to do this if the area has been filled in? For reference this is my code.

import pandas as pd
import numpy as np
import matplotlib.pyplot as plt


filename = "frontview.csv"

Front_Points = pd.read_csv(filename)

a = Front_Points["Length"]
b = Front_Points["Depth"]

f = plt.figure()
f.set_figwidth(20)

plt.plot(a,b)
polygon = plt.fill_between(a,b)
plt.show()

Thanks in advance!

0 Answers0