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

Method buildTree

src/IECoreScene/PointsPrimitiveEvaluator.cpp:253–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251}
252
253void PointsPrimitiveEvaluator::buildTree()
254{
255 if( m_haveTree )
256 {
257 return;
258 }
259
260 std::lock_guard<TreeMutex> lock( m_treeMutex );
261 if( m_haveTree )
262 {
263 // another thread may have built the tree while we waited for the mutex
264 return;
265 }
266
267 m_tree.init( m_pVector->begin(), m_pVector->end() );
268 m_haveTree = true;
269}

Callers 1

closestPointMethod · 0.45

Calls 3

initMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected