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
+26
View File
@@ -57,6 +57,32 @@ typedef struct Point3f
float Z;
} Point3f;
typedef struct Point3s
{
Point3s()
{
this->X = 0;
this->Y = 0;
this->Z = 0;
}
Point3s(short X, short Y, short Z)
{
this->X = X;
this->Y = Y;
this->Z = Z;
}
//meters to milimeters
Point3s(Point3f &other)
{
this->X = static_cast<short>(1000 * other.X);
this->Y = static_cast<short>(1000 * other.Y);
this->Z = static_cast<short>(1000 * other.Z);
}
short X;
short Y;
short Z;
} Point3s;
typedef struct Point2f
{
Point2f()