Commit f77f69c6 authored by reichenbach's avatar reichenbach

[FIX] points and tangents of reversed fibers are now calculated correctly

parent 39e461ea
......@@ -701,6 +701,8 @@ std::size_t WFiberPointsIterator::getBaseIndex() const
WPosition WFiberPointsIterator::operator*() const
{
if( m_reverse )
return m_fibers->getPosition( m_fiberIndex, m_fibers->getLengthOfLine( m_fiberIndex ) - m_index - 1 );
return m_fibers->getPosition( m_fiberIndex, m_index );
}
......@@ -741,6 +743,8 @@ double WFiberPointsIterator::getParameter( double def ) const
WPosition WFiberPointsIterator::getTangent() const
{
if( m_reverse )
return m_fibers->getTangent( m_fiberIndex, m_fibers->getLengthOfLine( m_fiberIndex ) - m_index - 1 );
return m_fibers->getTangent( m_fiberIndex, m_index );
}
......
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