Interface MeshEditParticipant

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface @CubismEditor public interface MeshEditParticipant
Called synchronously while the host is deleting mesh geometry, before anything is removed.

Whatever is returned joins the host's own undo group, so a single Undo reverts the host's deletion and the contribution together. Returning MeshEditContribution.none() leaves the host edit untouched, and so does throwing. Implementations must return promptly: the runtime diagnoses elapsed-time budget violations, but cannot safely preempt arbitrary in-process Java 17 code while the callback has synchronous access to an edit backed by live host geometry.

  • Method Summary

    Modifier and Type
    Method
    Description
    Computes this participant's contribution to a host-initiated mesh deletion.
  • Method Details

    • onDeleting

      MeshEditContribution onDeleting(MeshDeletion deletion)
      Computes this participant's contribution to a host-initiated mesh deletion.
      Parameters:
      deletion - the pending deletion, backed by live host geometry
      Returns:
      the contribution folded into the host's undo group; MeshEditContribution.none() leaves the host edit untouched