Fix breaking height partially

This commit is contained in:
2024-06-16 00:24:39 +02:00
parent ce6e214015
commit 53160c6c8b
4 changed files with 8 additions and 3 deletions

View File

@@ -69,6 +69,9 @@ class Polyline:
self.total_line_output.extend(
self.segments[self.length_polyline-1].segment())
self.total_line_output = self.total_line_output[0].optimized_path(
self.total_line_output)
def __repr__(self):
return str(self.alpha_radii)

View File

@@ -27,10 +27,9 @@ class Road:
self._projection()
self._surface()
print(self.polyline_total_line_output)
def _surface(self):
# Segments
for i in range(1, len(self.polyline.segments)):
if len(self.polyline.segments[i].segment()) > 1:
for j in range(len(self.polyline.segments[i].segment_thick(self.width, LINE_THICKNESS_MODE.MIDDLE))):