You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: node-graph/gcore/src/vector/vector_data.rs
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -561,6 +561,23 @@ impl ManipulatorPointId {
561
561
}
562
562
}
563
563
564
+
/// Finds all the connected handles of a point. For an anchor it is all the connected handles. For a handle it is all the handles connected to its corresponding anchor other than current handle
let point = vector_data.segment_domain.segment_start_from_id(segment)?;
570
+
let current = HandleId::primary(segment);
571
+
Some(vector_data.segment_domain.all_connected(point).filter(|&value| value != current).collect::<Vec<_>>())
572
+
}
573
+
ManipulatorPointId::EndHandle(segment) => {
574
+
let point = vector_data.segment_domain.segment_end_from_id(segment)?;
575
+
let current = HandleId::primary(segment);
576
+
Some(vector_data.segment_domain.all_connected(point).filter(|&value| value != current).collect::<Vec<_>>())
577
+
}
578
+
}
579
+
}
580
+
564
581
/// Attempt to find the closest anchor. If self is already an anchor then it is just self. If it is a start or end handle, then the start or end point is chosen.
0 commit comments