| 183 | } |
| 184 | |
| 185 | bool setup(unsigned int num_items, const LASitem* items) |
| 186 | { |
| 187 | unsigned int offset = 0; |
| 188 | if (point) delete [] point; |
| 189 | point = new unsigned char*[num_items]; |
| 190 | if (point_data) delete [] point_data; |
| 191 | point_data = new unsigned char[point_size]; |
| 192 | for (unsigned int i = 0; i < num_items; i++) |
| 193 | { |
| 194 | point[i] = &(point_data[offset]); |
| 195 | offset += items[i].size; |
| 196 | } |
| 197 | return (offset == point_size); |
| 198 | } |
| 199 | |
| 200 | ~PointData() |
| 201 | { |