[Bf-blender-cvs] [9c1150a2956] blender2.8: Cleanup: uvcalc_smart_project.py 2/2

Dalai Felinto noreply at git.blender.org
Wed Sep 5 20:36:44 CEST 2018


Commit: 9c1150a2956fa0321b0adb2999ead9abdd7a119e
Author: Dalai Felinto
Date:   Wed Sep 5 15:36:31 2018 -0300
Branches: blender2.8
https://developer.blender.org/rB9c1150a2956fa0321b0adb2999ead9abdd7a119e

Cleanup: uvcalc_smart_project.py 2/2

===================================================================

M	release/scripts/startup/bl_operators/uvcalc_smart_project.py

===================================================================

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:



More information about the Bf-blender-cvs mailing list