-
Notifications
You must be signed in to change notification settings - Fork 1
recollect_by_cond
Jip Claassens edited this page Apr 30, 2024
·
13 revisions
Relational functions recollect_by_cond
Recollects attribute values of a selection back to an original set using the condition used for the selection.
Use case: covert a compacted domain back to the uncompacted domain.
- recollect_by_cond(condition: D->Bool, values: S->V, fallbackValues: D->V)
- recollect_by_cond(condition: D->Bool, values: S->V, fallbackValue: ->V)
- recollect_by_cond(condition: D->Bool, values: S->V)
recollect_by_cond results in an attribute D->V having values taken from the values argument where a condition is true and using fallbackValue or fallbackValues where a condition is false, or undefined when no fallbackValues are provided.
attribute<bool> IsDenseEnough (domain) := recollect_by_cond(domain/IsCompactedDomain, IsDenseEnough_CD);
GeoDMS ©Object Vision BV. Source code distributed under GNU GPL-3. Documentation distributed under CC BY-SA 4.0.