Share via


IAlignmentManager.ClearAlignmentAnchors Method

Definition

Remove all alignment anchors that have been added. More efficient than removing them individually, and doesn't require having stored their ids on creation.

public void ClearAlignmentAnchors ();
abstract member ClearAlignmentAnchors : unit -> unit
Public Sub ClearAlignmentAnchors ()

Remarks

This is more efficient than removing one by one, but take care to discard all existing AnchorIds returned by AddAlignmentAnchor(String, Pose, Pose) after this call, as it will be an error to try to use any of them. Also note that this clears the Alignment Anchors staged for commit with the next SendAlignmentAnchors(), but the current ones will remain effective until the next call to SendAlignmentAnchors, which will send an empty list, unless it has been repopulated after the call to ClearAlignmentAnchors.

Applies to