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

Method processOne

filters/GeomDistanceFilter.cpp:141–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141bool GeomDistanceFilter::processOne(PointRef& point)
142{
143 static std::vector<double> data;
144
145 double x = point.getFieldAs<double>(Dimension::Id::X);
146 double y = point.getFieldAs<double>(Dimension::Id::Y);
147 double z = point.getFieldAs<double>(Dimension::Id::Z);
148
149
150 double distance = m_args->m_geometry.distance(x, y, z);
151 point.setField(m_args->m_dim, distance);
152
153 return true;
154}
155
156
157} // namespace pdal

Callers

nothing calls this directly

Calls 2

distanceMethod · 0.45
setFieldMethod · 0.45

Tested by

no test coverage detected