mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-13 02:47:48 +00:00
Improve weight in snapping for "Plane", "Axis" and "Face" type.
This commit is contained in:
@@ -569,6 +569,8 @@ class Snap(bonsai.core.tool.Snap):
|
||||
snap["distance"] *= weight_factor / 5
|
||||
if snap["type"] == "Edge Intersection":
|
||||
snap["distance"] *= weight_factor / 10
|
||||
if snap["type"] in ["Plane", "Axis", "Face"]:
|
||||
snap["distance"] = weight_factor / 50
|
||||
return sorted(snapping_points, key=lambda x: x["distance"])
|
||||
|
||||
snaps_by_group = filter_snapping_points_by_group(detected_snaps)
|
||||
|
||||
Reference in New Issue
Block a user