| 381 | |
| 382 | |
| 383 | void PlyReader::SimpleProperty::read(std::istream *stream, |
| 384 | PlyReader::Format format, PointRef& point) |
| 385 | { |
| 386 | if (format == Format::Ascii) |
| 387 | { |
| 388 | double d; |
| 389 | *stream >> d; |
| 390 | point.setField(m_dim, d); |
| 391 | } |
| 392 | else if (format == Format::BinaryLe) |
| 393 | { |
| 394 | ILeStream in(stream); |
| 395 | Everything e = Utils::extractDim(in, m_type); |
| 396 | point.setField(m_dim, m_type, &e); |
| 397 | } |
| 398 | else if (format == Format::BinaryBe) |
| 399 | { |
| 400 | IBeStream in(stream); |
| 401 | Everything e = Utils::extractDim(in, m_type); |
| 402 | point.setField(m_dim, m_type, &e); |
| 403 | } |
| 404 | } |
| 405 | |
| 406 | |
| 407 | // Right now we don't support list properties for point data. We just |
no test coverage detected