| 119 | |
| 120 | |
| 121 | void GltfWriter::ready(PointTableRef table) |
| 122 | { |
| 123 | m_stream.reset(new OLeStream(filename())); |
| 124 | |
| 125 | // We write the data before we write the header. To facilitate, we seek |
| 126 | // to a point where we're pretty darn sure that we can write the header |
| 127 | // with no problem later. We'll verify and throw an error if the |
| 128 | // assumption is bad. |
| 129 | m_stream->seek(HeaderSize + JsonChunkDataSize + (2 * ChunkHeaderSize)); |
| 130 | m_binSize = 0; |
| 131 | } |
| 132 | |
| 133 | |
| 134 | void GltfWriter::write(const PointViewPtr v) |