diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2018-09-05 21:36:31 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2018-09-05 21:36:31 +0300 |
commit | 9c1150a2956fa0321b0adb2999ead9abdd7a119e (patch) | |
tree | 2405340f9ba63fa21c7c2a09c713dfac9954bbce /release | |
parent | 9710056fb5d08ed1fc35078b61bf3cd099940e7e (diff) |
Cleanup: uvcalc_smart_project.py 2/2
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_operators/uvcalc_smart_project.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/release/scripts/startup/bl_operators/uvcalc_smart_project.py b/release/scripts/startup/bl_operators/uvcalc_smart_project.py index 3f83b8c73a0..3cf378d9c13 100644 --- a/release/scripts/startup/bl_operators/uvcalc_smart_project.py +++ b/release/scripts/startup/bl_operators/uvcalc_smart_project.py @@ -179,30 +179,6 @@ def island2Edge(island): return length_sorted_edges, [v.to_3d() for v in unique_points.values()] -# ========================= NOT WORKING???? -# Find if a points inside an edge loop, unordered. -# pt is and x/y -# edges are a non ordered loop of edges. -# offsets are the edge x and y offset. -""" -def pointInEdges(pt, edges): - # - x1 = pt[0] - y1 = pt[1] - - # Point to the left of this line. - x2 = -100000 - y2 = -10000 - intersectCount = 0 - for ed in edges: - xi, yi = lineIntersection2D(x1,y1, x2,y2, ed[0][0], ed[0][1], ed[1][0], ed[1][1]) - if xi is not None: # Is there an intersection. - intersectCount+=1 - - return intersectCount % 2 -""" - - def pointInIsland(pt, island): vec1, vec2, vec3 = Vector(), Vector(), Vector() for f in island: |