11 bool hasColor =
false;
13 void resize(
int _points)
16 data.resize(_points * stride());
19 return sizeof(float) * (hasColor ? 7 : 3);
21 void setValue(
int _index,
float _x,
float _y,
float _z,
float _r = 0.0,
float _g = 0.0,
float _b = 0.0,
float _a = 1.0)
23 float* pt =
reinterpret_cast<float*
>(data.data() + _index * stride());