[Insight-developers] build error in BorderQuadEdgeMeshFilter

Arnaud GELAS arnaud_gelas at hms.harvard.edu
Fri Feb 25 16:23:43 EST 2011


Gaetan,

Can you just submit an experimental build with the new error please?

Then I'll look at it!

---

my guess is that if you replace:

     e_it->GetOrigin().EuclideanDistanceTo(    by     
e_it.Value()->GetOrigin().EuclideanDistanceTo(

and

     e_it->GetDestinationination()         by     
e_it.Value()->GetDestination()


it would fix this error...

Arnaud

On 02/25/2011 03:30 PM, Gaëtan Lehmann wrote:
>
> Alex, Arnaud,
>
> I fixed some build errors in itkBorderQuadEdgeMeshFilter.txx, in 
> ComputeLargestBorder() and ComputeLongestBorder(), but one of them is 
> beyond my skills.
> I have simply commented the two offending lines for now to make 
> WrapITK build.
>
> Could you please look at that problem?
>
> Thanks,
>
> Gaëtan
>
>
>
>
> diff --git a/Code/Algorithms/itkBorderQuadEdgeMeshFilter.txx 
> b/Code/Algorithms/itkBorderQuadEdgeMeshFilter.txx
> index 9972732..429a28e 100644
> --- a/Code/Algorithms/itkBorderQuadEdgeMeshFilter.txx
> +++ b/Code/Algorithms/itkBorderQuadEdgeMeshFilter.txx
> @@ -106,12 +106,12 @@ BorderQuadEdgeMeshFilter< TInputMesh, 
> TOutputMesh >::ComputeLongestBorder()
>      {
>      length = 0.;
>
> -    for ( InputIteratorGeom e_it = b_it->BeginGeomLnext();
> -          e_it != b_it->EndGeomLnext();
> +    for ( InputIteratorGeom e_it = (*b_it)->BeginGeomLnext();
> +          e_it != (*b_it)->EndGeomLnext();
>            ++e_it )
>        {
> -      length += e_it->GetOrigin().EuclideanDistanceTo(
> -        e_it->GetDestinationination() );
> +//      length += e_it->GetOrigin().EuclideanDistanceTo(
> +//        e_it->GetDestinationination() );
>        }
>      if ( length > max_length )
>        {
>
>



More information about the Insight-developers mailing list