[Insight-users] MeshSpatialObject

Gheorghe Postelnicu gheorghe.postelnicu at gmail.com
Mon Aug 21 20:21:25 EDT 2006


Hi Julien,

Yes, sorry to have forgotten to mention it the first time. I actually
changed it to LineCell. As I said, my purpose is to compute the
distance from a contour in 2D (so triangles is not the most apropriate
class).

Thanks,

On 8/21/06, Julien Jomier <julien.jomier at kitware.com> wrote:
> Hi Gheorghe,
>
> Did you also change the type of cell to be something else other than
> TetrahedronCell? (like TriangleCell). TetrahedronCell doesn't make sens
> in 2D.
>
> Hope that helps,
>
> Julien
>
> Gheorghe Postelnicu wrote:
> > Hi,
> >
> > I would have liked to use a MeshSpatialObject to get the signed
> > distance function from a set of contours in 2D. I chose as a starting
> > point the example code from MeshSpatialObject.cxx and just adapted it
> > by changing the dimension from 3 to 2. However, the code results in a
> > segmentation fault.
> >
> > I am working with ITK 2.8.1 on Linux.
> > Any suggestions?
> >
> > Thanks,
>
>


-- 
Gheorghe Postelnicu, PhD
MGH, Harvard Medical School


More information about the Insight-users mailing list