Simple applications that 'flip' between two modes can be easily built using a combination of the Flip-Flop component and the state gate. The Flip-Flop component toggles a boolean output value between true and false whenever it's input parameter is updated.
Recording marker positions with Globals
A global variable pts is created to store all of the tracked points of our marker cube. The current position of the marker is added to this list of points using the merge component. These tools are then grouped and connected to the True output of our state gate.
Interpolating and saving curves through tracked points
A nurbs curve is interpolated between the tracked pts global and then meshed using the Mesh Pipe component. This pipe is then baked with a c# component (or use the one in Human UI). These components are grouped and connected to the False output of the state gate.
Rendering a preview
The dynamic value of the pts list is used to interpolate a curve that is meshed and streamed to the mixed reality device. This renders the curve regardless of which 'mode' the application is in and prevents the need for duplicate components in the definition.