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

Method ready

filters/SampleFilter.cpp:85–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85void SampleFilter::ready(PointTableRef)
86{
87 m_populatedVoxels.clear();
88
89 if (m_cellArg->set())
90 m_radius = m_cell / 2.0 * std::sqrt(3.0);
91
92 if (m_radiusArg->set())
93 m_cell = 2.0 * m_radius / std::sqrt(3.0);
94
95 log()->get(LogLevel::Debug)
96 << "cell " << m_cell << ", radius " << m_radius << std::endl;
97
98 m_radiusSqr = m_radius * m_radius;
99}
100
101PointViewSet SampleFilter::run(PointViewPtr view)
102{

Callers

nothing calls this directly

Calls 4

logFunction · 0.50
clearMethod · 0.45
setMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected