60 size_t num_points = lasreader->
npoints;
63 floatArr points (
new float[3 * num_points]);
64 floatArr intensities (
new float[num_points]);
68 for(
size_t i = 0; i < num_points; i++)
70 size_t buf_pos = 3 * i;
72 points[buf_pos] = lasreader->
point.
x;
73 points[buf_pos + 1] = lasreader->
point.
y;
74 points[buf_pos + 2] = lasreader->
point.
z;
88 p_buffer->setPointArray(points, num_points);
89 p_buffer->addFloatChannel(intensities,
"intensities", num_points, 1);
90 p_buffer->setColorArray(
colors, num_points);
110 std::cerr <<
"LASIO: Saving not yet implemented." << endl;