[ITK-users] Segfault in Wiki Example: QuadEdgeMeshParameterizationFilter

DVigneault davis.vigneault at gmail.com
Wed Jun 10 09:05:23 EDT 2015


Arnaud--

Thank you for your help, and for the link to the Insight article!  I was
able to compile and use the Point In Circle [1] example without difficulty. 
I had a little more trouble with the Straight Walk [2] example.  I've
written reviews for both on IJ.  I've reproduced below the part of the
review describing the steps I needed to take to get the Straight Walk
example working.

1.  It appears that the submodule is not linked correctly in github.  I
needed to remove the .gitmodules file and add the submodule manually.  Here
is my StackOverflow question [3] which solved the problem.
2.  I had to change WalkInTriangulation/CMakeLists.txt:6:
include( ${USE_ITK_FILE}) ==> include( ${ITK_USE_FILE})
3.  At this point, CMake runs without errors; but when building I'm told
that OrientationTest is missing.  I assumed that OrientationTest is a
wrapper for orient2d, and added the following function to
itkWalkInTriangulationFunction.h:

template< typename TPoint >
double
OrientationTest( TPoint a, TPoint b, TPoint c ) 
{
  double pa[2];
  double pb[2];
  double pc[2];

  pa[0] = a[0];
  pa[1] = a[1];

  pb[0] = b[0];
  pb[1] = b[1];
  
  pc[0] = c[0];
  pc[1] = c[1];

  return orient2d(pa, pb, pc);

}

With those changes, the example seems to work correctly, though I haven't
done thorough testing yet.

Best, and thanks again,

--Davis

[1] https://github.com/midas-journal/midas-journal-843
[2] https://github.com/midas-journal/midas-journal-851
[3]
http://stackoverflow.com/questions/30754878/recursively-cloning-a-git-repo-doesnt-pull-submodules/30756107#30756107



--
View this message in context: http://itk-insight-users.2283740.n2.nabble.com/ITK-users-Segfault-in-Wiki-Example-QuadEdgeMeshParameterizationFilter-tp7587442p7587463.html
Sent from the ITK Insight Users mailing list archive at Nabble.com.


More information about the Insight-users mailing list