[Insight-users] Bug with SimplexMesh ?
Leila baghdadi
baghdadi at sickkids.ca
Tue Jul 26 11:53:19 EDT 2005
Ben,
1. I have seen a similar issue with SimplexMesh
try to DisconnectPipeline() before accessing the mesh in another
function, check the test files, I specifically have a test file that
does this,
2. on another note, there is an issue with
DeformableSimplexMesh3DFilter,
at the place where it calculates externalforces, it probes the
coordinate of the mesh on image, normally you need to do a
transformation from world coordinates to image coordinates
right now it does not do any transformation, i.e, it is correct only if
your image has spacing 1,1,1 and origin 0,0,0, and direction cosines
identity,
I am adding these changes but it will take sometime
will e-mail the list once I am done the updates
HTH
Leila
On Tue, 2005-07-26 at 11:31, Benoit wrote:
> Hi !
>
> First of all, I work with DeformableSimplexMesh3DFilter.
> My input and output meshes are triangle mesh.
> So I use TriangleMeshToSimplexMeshFilter and SimplexMeshToTriangleMeshFilter.
>
> If I consider, in the same fucntion
> 1. apply a DeformableSimplexMesh3DFilter
> 2. convert its output to a triangle mesh
> it works
>
> If, instead, I consider
> 1. apply a DeformableSimplexMesh3DFilter
> 2. copy the output in a SimplexMesh::Pointer m_SimplexMesh attribute
> 3. in another function, use m_SimplexMesh as the input for
> SimplexMeshToTriangleMeshFilter
> I get a segfault during the conversion
>
> It seems all informations in SimplexMesh::m_GeometryData are destroyed
> at the end of the fucntion containing the
> DeformableSimplexMesh3DFilter instance
>
> I tried to apply Register on SimplexMesh::m_GeometryData, to use
> SetReleaseDataFlagOff and DisconnectPipeline on my m_SimplexMesh
> attribute, but it didn't change anything
>
> Is there a way not to destroy these informations ?
>
> I hope I made my mind clear...
>
> Regards,
> Ben
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
More information about the Insight-users
mailing list