2 parents a24c405 + 5076ca8 commit 8c3bcb9Copy full SHA for 8c3bcb9
1 file changed
wrappers/csharp/Documentation/cookbook.md
@@ -281,7 +281,8 @@ pipe.Start();
281
282
using (var frames = pipe.WaitForFrames())
283
using (var depth = frames.DepthFrame)
284
-using (var points = pc.Process(depth).As<Points>())
+using (var pc_frame = pc.Process(depth))
285
+using (var points = pc_frame.As<Points>())
286
{
287
// CopyVertices is extensible, any of these will do:
288
var vertices = new float[points.Count * 3];
@@ -423,4 +424,4 @@ using (var sensor = playback.Sensors[0])
423
424
SpinWait.SpinUntil(() => playback.Status == PlaybackStatus.Stopped);
425
Print();
426
}
-```
427
+```
0 commit comments