[Insight-developers] build error in BorderQuadEdgeMeshFilter

Gaëtan Lehmann gaetan.lehmann at jouy.inra.fr
Sat Feb 26 08:48:08 EST 2011


Hi Arnaud,

Unfortunately this is still failing.

Regards,

Gaëtan



diff --git a/Code/Algorithms/itkBorderQuadEdgeMeshFilter.txx b/Code/ 
Algorithms/itkBorderQuadEdgeMeshFilter.txx
index 429a28e..1ddbbb7 100644
--- a/Code/Algorithms/itkBorderQuadEdgeMeshFilter.txx
+++ b/Code/Algorithms/itkBorderQuadEdgeMeshFilter.txx
@@ -110,8 +110,7 @@ BorderQuadEdgeMeshFilter< TInputMesh, TOutputMesh  
 >::ComputeLongestBorder()
            e_it != (*b_it)->EndGeomLnext();
            ++e_it )
        {
-//      length += e_it->GetOrigin().EuclideanDistanceTo(
-//        e_it->GetDestinationination() );
+      length += e_it.Value()- 
 >GetOrigin().EuclideanDistanceTo( e_it.Value()->GetDestination() );
        }
      if ( length > max_length )
        {


[100%] Building CXX object Wrapping/WrapITK/Libraries/Mesh/CMakeFiles/ 
MeshExplicit.dir/itkBorderQuadEdgeMeshFilterExplicit.o
In file included from /home/glehmann/src/ITK/Code/Algorithms/ 
itkBorderQuadEdgeMeshFilter.h:155,
                  from /home/glehmann/src/ITK/build/Wrapping/WrapITK/ 
Typedefs/MeshExplicit.h:59,
                  from /home/glehmann/src/ITK/build/Wrapping/WrapITK/ 
Libraries/Mesh/itkBorderQuadEdgeMeshFilterExplicit.cxx:3:
/home/glehmann/src/ITK/Code/Algorithms/ 
itkBorderQuadEdgeMeshFilter.txx: In member function 'typename  
itk::BorderQuadEdgeMeshFilter<TInputMesh,  
TOutputMesh>::InputEdgeListIterator  
itk::BorderQuadEdgeMeshFilter<TInputMesh,  
TOutputMesh>::ComputeLongestBorder() [with TInputMesh =  
itk::QuadEdgeMesh<double, 3u, itk::QuadEdgeMeshTraits<double, 3u,  
bool, bool, float, float> >, TOutputMesh = itk::QuadEdgeMesh<double,  
3u, itk::QuadEdgeMeshTraits<double, 3u, bool, bool, float, float> >]':
/home/glehmann/src/ITK/build/Wrapping/WrapITK/Libraries/Mesh/ 
itkBorderQuadEdgeMeshFilterExplicit.cxx:4:   instantiated from here
/home/glehmann/src/ITK/Code/Algorithms/itkBorderQuadEdgeMeshFilter.txx: 
113: error: request for member 'EuclideanDistanceTo' in  
'e_it.itk::QuadEdgeMeshIteratorGeom<itk::GeometricalQuadEdge<long  
unsigned int, long unsigned int, bool, bool, true>  
 >::<anonymous>.itk::QuadEdgeMeshIterator<TQuadEdge>::Value [with  
TQuadEdge = itk::GeometricalQuadEdge<long unsigned int, long unsigned  
int, bool, bool, true>]()->itk::GeometricalQuadEdge<TVRef, TFRef,  
TPrimalData, TDualData, PrimalDual>::GetOrigin [with TVRef = long  
unsigned int, TFRef = long unsigned int, TPrimalData = bool, TDualData  
= bool, bool PrimalDual = true]()', which is of non-class type 'const  
long unsigned int'
make[3]: *** [Wrapping/WrapITK/Libraries/Mesh/CMakeFiles/ 
MeshExplicit.dir/itkBorderQuadEdgeMeshFilterExplicit.o] Error 1
make[2]: *** [Wrapping/WrapITK/Libraries/Mesh/CMakeFiles/ 
MeshExplicit.dir/all] Error 2
make[1]: *** [Wrapping/WrapITK/Libraries/Mesh/CMakeFiles/ 
MeshExplicit.dir/rule] Error 2
make: *** [MeshExplicit] Error 2



Le 25 févr. 11 à 22:23, Arnaud GELAS a écrit :

> 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 )
>>       {
>>
>>
>

-- 
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66    fax: 01 34 65 29 09
http://voxel.jouy.inra.fr  http://www.itk.org
http://www.mandriva.org  http://www.bepo.fr

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 203 bytes
Desc: Ceci est une signature ?lectronique PGP
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20110226/7645adc4/attachment.pgp>


More information about the Insight-developers mailing list