Data streaming is now much faster (up to 40%). Also added the option to save to binary PLY which is faster than ASCII.

This commit is contained in:
marek
2015-11-09 16:34:26 +01:00
parent 51129eaf30
commit 128645d299
12 changed files with 193 additions and 66 deletions
+5 -2
View File
@@ -206,8 +206,11 @@ namespace KinectServer
}
for (int j = 0; j < 3; j++)
{
lFrameVerts.Add(BitConverter.ToSingle(buffer, startIdx));
startIdx += 4;
float val = BitConverter.ToInt16(buffer, startIdx);
//converting from milimeters to meters
val /= 1000.0f;
lFrameVerts.Add(val);
startIdx += 2;
}
}