mirror of
https://github.com/storytold/LiveScan3D.git
synced 2026-10-15 00:04:11 +00:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user