Skip to content

buffer_domains builtin

buffer_domains(
    model, classes, *, distance, label=None, target=None
)

Block classes with every block within distance of a contact relabeled label ("contact" by default): of a contact between any two classes, or with target, of the contact of class target, on both sides of it. Distances are those of contact_distance, so the buffer is as wide on either side.

used in