| 189 | } |
| 190 | |
| 191 | void testDimensions(NL::json dimensions, bool pass) |
| 192 | { |
| 193 | std::string inFile = Support::datapath("las/1.2-with-color.las"); |
| 194 | std::string outFile = Support::temppath("draco_test_dims.drc"); |
| 195 | FileUtils::deleteFile(outFile); |
| 196 | |
| 197 | //setup reader |
| 198 | Options readerOptions; |
| 199 | readerOptions.add("filename", inFile); |
| 200 | readerOptions.add("count", 1065); |
| 201 | LasReader reader; |
| 202 | reader.setOptions(readerOptions); |
| 203 | |
| 204 | Options options; |
| 205 | options.add("filename", outFile); |
| 206 | options.add("dimensions", dimensions); |
| 207 | |
| 208 | DracoWriter writer; |
| 209 | writer.setOptions(options); |
| 210 | writer.setInput(reader); |
| 211 | |
| 212 | PointTable table; |
| 213 | writer.prepare(table); |
| 214 | |
| 215 | writer.execute(table); |
| 216 | } |
| 217 | |
| 218 | void testZeroFill() { |
| 219 | std::string inFile = Support::temppath("draco_test_dims.drc"); |
no test coverage detected