]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpa/Base/RegionGrow.hxx
...
[FrontAlgorithms.git] / lib / fpa / Base / RegionGrow.hxx
index 247cf940ef4cbc1adf79d7453d58479f17c2603a..503222c1fc7d9ec6f6c770d7ba74dfd764f6f66a 100644 (file)
@@ -90,9 +90,8 @@ fpa::Base::RegionGrow< _TAlgorithm >::
 
 // -------------------------------------------------------------------------
 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;
@@ -100,7 +99,8 @@ _ComputeOutputValue( const TNode& n )
     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 );
 }
 
 // -------------------------------------------------------------------------