mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 02:23:34 +00:00
Rename "Edge-Intersection" to "Edge Intersection"
This commit is contained in:
@@ -579,7 +579,7 @@ class PolylineDecorator:
|
||||
padding = 8
|
||||
verts = []
|
||||
edges = []
|
||||
if snap_prop.snap_type in ["Edge", "Edge-Intersection", "Vertex"]:
|
||||
if snap_prop.snap_type in ["Edge", "Edge Intersection", "Vertex"]:
|
||||
p1 = (coords[0] - padding, coords[1] + padding)
|
||||
p2 = (coords[0] + padding, coords[1] + padding)
|
||||
p3 = (coords[0] + padding, coords[1] - padding)
|
||||
@@ -587,7 +587,7 @@ class PolylineDecorator:
|
||||
verts = [p1, p2, p3, p4]
|
||||
if snap_prop.snap_type == "Edge":
|
||||
edges = [[0, 1], [1, 3], [3, 2], [2, 0]]
|
||||
elif snap_prop.snap_type == "Edge-Intersection":
|
||||
elif snap_prop.snap_type == "Edge Intersection":
|
||||
edges = [[0, 2], [1, 3]]
|
||||
else:
|
||||
edges = [[0, 1], [1, 2], [2, 3], [3, 0]]
|
||||
|
||||
@@ -548,7 +548,7 @@ class Snap(bonsai.core.tool.Snap):
|
||||
if tool.Cad.are_vectors_equal(e1["point"], e2["point"], tolerance=0.1):
|
||||
intersection = tool.Cad.intersect_edges_v2(e1["edge_verts"], e2["edge_verts"])
|
||||
if intersection[1]:
|
||||
snapping_points.insert(0, (intersection[1], "Edge-Intersection", None))
|
||||
snapping_points.insert(0, (intersection[1], "Edge Intersection", None))
|
||||
|
||||
# Make Axis first priority
|
||||
if tool_state.lock_axis or tool_state.axis_method in {"X", "Y", "Z"}:
|
||||
|
||||
Reference in New Issue
Block a user