mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-27 02:31:09 +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
|
snap["distance"] *= weight_factor / 5
|
||||||
if snap["type"] == "Edge Intersection":
|
if snap["type"] == "Edge Intersection":
|
||||||
snap["distance"] *= weight_factor / 10
|
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"])
|
return sorted(snapping_points, key=lambda x: x["distance"])
|
||||||
|
|
||||||
snaps_by_group = filter_snapping_points_by_group(detected_snaps)
|
snaps_by_group = filter_snapping_points_by_group(detected_snaps)
|
||||||
|
|||||||
Reference in New Issue
Block a user