Commit 51d030c0 authored by Alexander Wiebel's avatar Alexander Wiebel
Browse files

Merge branch '461-negative-distance-in-voxelizer-throws-assert-for-normal-sivert-track-dataset'

parents 98833079 1ce158fc
......@@ -289,11 +289,15 @@ void WCsvConverter::calculateFibers()
fibers->operator[]( eID ) = fib;
colors->operator[]( eID ) = col;
}
fib->push_back( pos );
col->push_back( m_vectors->getColors()->at( i * 4 ) );
col->push_back( m_vectors->getColors()->at( i * 4 + 1 ) );
col->push_back( m_vectors->getColors()->at( i * 4 + 2 ) );
col->push_back( m_vectors->getColors()->at( i * 4 + 3 ) );
if( std::find( fib->begin(), fib->end(), pos ) == fib->end() )
{
fib->push_back( pos );
col->push_back( m_vectors->getColors()->at( i * 4 ) );
col->push_back( m_vectors->getColors()->at( i * 4 + 1 ) );
col->push_back( m_vectors->getColors()->at( i * 4 + 2 ) );
col->push_back( m_vectors->getColors()->at( i * 4 + 3 ) );
}
}
WDataSetFiberVector::SPtr newDS( new WDataSetFiberVector() );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment