Total and ordered full block placement
This commit is contained in:
@@ -63,11 +63,9 @@ class Polyline:
|
|||||||
self.get_segments()
|
self.get_segments()
|
||||||
|
|
||||||
self.total_line_output = []
|
self.total_line_output = []
|
||||||
# for i in range(1, self.length_polyline-1):
|
for i in range(1, self.length_polyline-1):
|
||||||
# self.total_line_output.extend(self.segments[i].segment())
|
self.total_line_output.extend(self.segments[i].segment())
|
||||||
# self.total_line_output.extend(self.arcs[i])
|
self.total_line_output.extend(self.arcs[i])
|
||||||
self.total_line_output.extend(self.segments[1].segment())
|
|
||||||
self.total_line_output.extend(self.arcs[2])
|
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return str(self.alpha_radii)
|
return str(self.alpha_radii)
|
||||||
@@ -113,10 +111,8 @@ class Polyline:
|
|||||||
self.acrs_intersections[i][0]) - Point2D.to_arrays(self.centers[i])))
|
self.acrs_intersections[i][0]) - Point2D.to_arrays(self.centers[i])))
|
||||||
double_point_b = Point2D.from_arrays(Point2D.to_arrays(self.acrs_intersections[i][2]) + 5 * (Point2D.to_arrays(
|
double_point_b = Point2D.from_arrays(Point2D.to_arrays(self.acrs_intersections[i][2]) + 5 * (Point2D.to_arrays(
|
||||||
self.acrs_intersections[i][2]) - Point2D.to_arrays(self.centers[i])))
|
self.acrs_intersections[i][2]) - Point2D.to_arrays(self.centers[i])))
|
||||||
input("---")
|
|
||||||
for j in range(len(points)):
|
for j in range(len(points)):
|
||||||
print(points[j], i, j, len(points))
|
|
||||||
print(len(self.arcs[i]), len(self.arcs[i-1]))
|
|
||||||
if points[j].is_in_triangle(double_point_a, self.centers[i], double_point_b):
|
if points[j].is_in_triangle(double_point_a, self.centers[i], double_point_b):
|
||||||
self.arcs[i].append(points[j])
|
self.arcs[i].append(points[j])
|
||||||
return self.arcs
|
return self.arcs
|
||||||
|
|||||||
@@ -1,13 +1,12 @@
|
|||||||
import json
|
import json
|
||||||
from typing import List
|
from typing import List
|
||||||
from networks.geometry.Polyline import Polyline
|
from networks.geometry.Polyline import Polyline
|
||||||
from networks.geometry.Segment2D import Segment2D
|
|
||||||
from networks.geometry.Segment3D import Segment3D
|
|
||||||
from networks.geometry.Point3D import Point3D
|
from networks.geometry.Point3D import Point3D
|
||||||
from networks.geometry.Point2D import Point2D
|
from networks.geometry.Point2D import Point2D
|
||||||
from networks.geometry.Circle import Circle
|
from networks.geometry.Circle import Circle
|
||||||
from Enums import LINE_THICKNESS_MODE
|
from Enums import LINE_THICKNESS_MODE
|
||||||
from gdpc import Block, Editor, geometry
|
from gdpc import Block, Editor
|
||||||
|
|
||||||
|
|
||||||
class Road:
|
class Road:
|
||||||
|
|||||||
BIN
output_image.png
BIN
output_image.png
Binary file not shown.
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 3.4 KiB |
Reference in New Issue
Block a user