// -------------------------------------------------------------------------
template< class _TAlgorithm >
-typename fpa::Base::RegionGrow< _TAlgorithm >::
-TOutputValue fpa::Base::RegionGrow< _TAlgorithm >::
-_ComputeOutputValue( const TNode& n )
+bool fpa::Base::RegionGrow< _TAlgorithm >::
+_ComputeOutputValue( TNode& n )
{
TInputValue value = this->_GetInputValue( n.Vertex );
bool inside = false;
inside = this->m_ValuePredicate->Evaluate( value );
if( this->m_VertexPredicate.IsNotNull( ) )
inside &= this->m_VertexPredicate->Evaluate( n.Vertex );
- return( ( inside )? this->m_InsideValue: this->m_InitValue );
+ n.Value = ( inside )? this->m_InsideValue: this->m_InitValue;
+ return( inside );
}
// -------------------------------------------------------------------------