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