Beispiel #1
0
        public static IEnumerator SelectVolumeByOverlap(MetaSelectionMode selectionMode, BoundingBox selectVolume)
        {
            var selectList = selectionMode.Selectable.SelectablePayloads.Where
                                 (payload => selectVolume.OverlapsBound(payload.VisualData.Bound)).ToList();

            yield return(null);

            var iterator = selectionMode.ApplyMode(selectList);

            while (iterator.MoveNext())
            {
                yield return(null);
            }
        }
Beispiel #2
0
        public static IEnumerator ApplySelectionOperation(SelectionOperation operation, IMetaSelectable selectable,
                                                          IEnumerable <VisualPayload> selected)
        {
            var selectMode = new MetaSelectionMode(operation)
            {
                Selectable = selectable
            };

            var iterator = selectMode.ApplyMode(selected);

            while (iterator.MoveNext())
            {
                yield return(null);
            }
        }