MCPcopy Create free account
hub / github.com/ImageEngine/cortex / nearestNeighbour

Method nearestNeighbour

src/IECorePython/KDTreeBinding.cpp:90–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88 }
89
90 size_t nearestNeighbour( const typename T::Point &p)
91 {
92 assert(m_tree);
93
94 typename T::Iterator it = m_tree->nearestNeighbour(p);
95
96 return std::distance( m_points->readable().begin(), it );
97 }
98
99 IntVectorDataPtr nearestNeighbours(const typename T::Point &p, typename T::Point::BaseType r)
100 {

Callers 2

doNearestNeighbourMethod · 0.80
closestPointMethod · 0.80

Calls 2

readableMethod · 0.80
beginMethod · 0.45

Tested by

no test coverage detected