Add grid generation
This commit is contained in:
@@ -28,6 +28,9 @@ class Polyline:
|
||||
self.length_polyline = len(self.points_array)
|
||||
|
||||
if self.length_polyline < 4:
|
||||
print(self.length_polyline)
|
||||
print(self.points_array)
|
||||
print(self.output_points)
|
||||
raise ValueError("The list must contain at least 4 elements.")
|
||||
|
||||
self.vectors = [None] * self.length_polyline # v
|
||||
|
||||
@@ -22,6 +22,8 @@ class Segment3D:
|
||||
|
||||
>>> Segment3D(Point3D(0, 0, 0), Point3D(10, 10, 15))
|
||||
"""
|
||||
start = self.start.copy()
|
||||
end = self.end.copy()
|
||||
self.output_points.append(start.copy())
|
||||
dx = abs(self.end.x - self.start.x)
|
||||
dy = abs(self.end.y - self.start.y)
|
||||
|
||||
Reference in New Issue
Block a user