MCPcopy Create free account
hub / github.com/PDAL/PDAL / testZeroFill

Function testZeroFill

plugins/draco/test/DracoWriterTest.cpp:218–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216 }
217
218 void testZeroFill() {
219 std::string inFile = Support::temppath("draco_test_dims.drc");
220
221 //setup reader
222 Options readerOptions;
223 readerOptions.add("filename", inFile);
224 // readerOptions.add("count", 1065);
225 DracoReader reader;
226 reader.setOptions(readerOptions);
227
228 PointTable table;
229 reader.prepare(table);
230 PointViewSet viewSet = reader.execute(table);
231 PointViewPtr view = *viewSet.begin();
232 point_count_t count = view->size();
233
234 for (PointId i = 0; i < count; i += 1) {
235 float y = view->getFieldAs<float>(Dimension::Id::Y, i);
236 float z = view->getFieldAs<float>(Dimension::Id::Z, i);
237 EXPECT_EQ(y, 0);
238 EXPECT_EQ(z, 0);
239 }
240
241 }
242
243 TEST_F(DracoWriterTest, dimensions)
244 {

Callers 1

TEST_FFunction · 0.85

Calls 7

temppathFunction · 0.85
setOptionsMethod · 0.80
addMethod · 0.45
prepareMethod · 0.45
executeMethod · 0.45
beginMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected