RDG-Networks 0.1.5__tar.gz → 0.1.8__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {RDG-Networks-0.1.5 → RDG-Networks-0.1.8}/PKG-INFO +1 -1
- {RDG-Networks-0.1.5 → RDG-Networks-0.1.8}/RDG_Networks.egg-info/PKG-INFO +1 -1
- {RDG-Networks-0.1.5 → RDG-Networks-0.1.8}/RDG_networks/draw_segments.py +1 -1
- {RDG-Networks-0.1.5 → RDG-Networks-0.1.8}/RDG_networks/generate_line_network.py +1 -1
- {RDG-Networks-0.1.5 → RDG-Networks-0.1.8}/RDG_networks/generate_line_segments.py +2 -2
- {RDG-Networks-0.1.5 → RDG-Networks-0.1.8}/RDG_networks/get_intersection_segments.py +3 -3
- {RDG-Networks-0.1.5 → RDG-Networks-0.1.8}/setup.py +1 -1
- {RDG-Networks-0.1.5 → RDG-Networks-0.1.8}/LICENSE.txt +0 -0
- {RDG-Networks-0.1.5 → RDG-Networks-0.1.8}/RDG_Networks.egg-info/SOURCES.txt +0 -0
- {RDG-Networks-0.1.5 → RDG-Networks-0.1.8}/RDG_Networks.egg-info/dependency_links.txt +0 -0
- {RDG-Networks-0.1.5 → RDG-Networks-0.1.8}/RDG_Networks.egg-info/entry_points.txt +0 -0
- {RDG-Networks-0.1.5 → RDG-Networks-0.1.8}/RDG_Networks.egg-info/requires.txt +0 -0
- {RDG-Networks-0.1.5 → RDG-Networks-0.1.8}/RDG_Networks.egg-info/top_level.txt +0 -0
- {RDG-Networks-0.1.5 → RDG-Networks-0.1.8}/RDG_networks/Classes.py +0 -0
- {RDG-Networks-0.1.5 → RDG-Networks-0.1.8}/RDG_networks/__init__.py +0 -0
- {RDG-Networks-0.1.5 → RDG-Networks-0.1.8}/RDG_networks/sample_in_polygon.py +0 -0
- {RDG-Networks-0.1.5 → RDG-Networks-0.1.8}/README.md +0 -0
- {RDG-Networks-0.1.5 → RDG-Networks-0.1.8}/setup.cfg +0 -0
@@ -1,7 +1,7 @@
|
|
1
1
|
import matplotlib.pyplot as plt
|
2
2
|
from typing import List, Optional
|
3
3
|
|
4
|
-
from
|
4
|
+
from .Classes import LineSegment
|
5
5
|
|
6
6
|
def draw_segments(segments: List[LineSegment], fig: Optional[plt.Figure] = None, ax: Optional[plt.Axes] = None) -> None:
|
7
7
|
"""
|
@@ -4,8 +4,8 @@ import numpy as np
|
|
4
4
|
import random
|
5
5
|
from typing import List, Tuple, Union
|
6
6
|
|
7
|
-
from
|
8
|
-
from
|
7
|
+
from .Classes import Line, LineSegment, Polygon
|
8
|
+
from .sample_in_polygon import sample_in_polygon
|
9
9
|
|
10
10
|
def doLinesIntersect(line1: Line, line2: Line) -> Tuple[bool, Union[Tuple[float, float], None]]:
|
11
11
|
"""
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import numpy as np
|
2
2
|
from typing import List, Tuple
|
3
3
|
|
4
|
-
from
|
4
|
+
from .Classes import LineSegment
|
5
5
|
|
6
6
|
def order_points(points: List[Tuple[float, float]], segment_start: Tuple[float, float]) -> List[Tuple[float, float]]:
|
7
7
|
"""
|
@@ -54,9 +54,9 @@ def get_intersection_segments(line_segments: List[LineSegment]) -> List[LineSegm
|
|
54
54
|
# Order intersection points
|
55
55
|
ordered_intersection_points = {}
|
56
56
|
for segment_id, points in intersection_points.items():
|
57
|
-
|
57
|
+
|
58
58
|
ordered_points = order_points(points, points[0])
|
59
|
-
|
59
|
+
ordered_points = list(set(ordered_points))
|
60
60
|
ordered_intersection_points[segment_id] = ordered_points
|
61
61
|
|
62
62
|
# Generate intersection segments
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|