[Insight-users] AutomaticTopologyMeshSource in pipeline

Peter Cech pcech at vision.ee.ethz.ch
Wed Jul 21 13:13:10 EDT 2004


Hi,

I was trying to feed the mesh constructed by AutomaticTopologyMeshSource
(using AddPoint and AddTriangle methods) to DeformableMesh3DFilter, but
got a segfault. Debugging revealed that call to Update method of
DeformableMesh3DFilter triggers PrepareOutputs method of
AutomaticTopologyMeshSource (inherited from ProcessObject) which causes
reinitialization of it's internal mesh object (output pointer points to
the same mesh that is created by Add* methods). By reinitialization both
points and cells containers of input mesh are freed and become zero
pointers and all data are lost. Later DeformableMesh3DFilter segfaults
when trying to access points or cells of input mesh.

Is it a bug or did I just miss something that will regenerate output
mesh of AutomaticTopologyMeshSource before passing it further in
pipeline?

Regards,

Peter Cech

PS: Experiments were conducted with today's CVS.


More information about the Insight-users mailing list