<div dir="ltr"><br><div class="gmail_quote"><div dir="ltr"><div><div><div><div><div><font size="2">Hello,<br></font></div><font size="2">I'm trying to deform a simplex mesh with the itkDeformableSimplexMesh3DBalloonForceFilter. All the deformation process is called in a method of a class.<br><span style="font-family:monospace,monospace"></span><br><span style="font-family:monospace,monospace">typedef itk::SimplexMesh<float, 3> TSimplex;<br>typedef itk::DeformableSimplexMesh3DBalloonForceFilter<TSimplex, TSimplex> TDeform;<br><br>void* Deformation::inflate() {<br> TDeform::Pointer balloon = TDeform::New();<br> balloon->SetInput(simplex);<br> balloon->SetKappa(0.01);<br> balloon->Update();<br> simplex = balloon->GetOutput();<br> </span><span style="font-family:monospace,monospace"><span style="font-family:monospace,monospace">simplex</span>->DisconnectPipeline();<br>}</span><br><br></font></div><font size="2">I got an execution error when I call the function twice, specifically on the Update() method.<br></font></div><font size="2">Here is the debug result:<br><br>Thread #1 [DeformacionPulm] 6328 [core: 3] (Suspended : Signal : SIGSEGV:Segmentation fault) <br> itk::Point<double, 3u>::operator=() at itkPoint.hxx:35 0x4b6929 <br> itk::DeformableSimplexMesh3DFilter<itk::SimplexMesh<float, 3u, itk::DefaultStaticMeshTraits<float, 3u, 3u, float, float, float> >, itk::SimplexMesh<float, 3u, itk::DefaultStaticMeshTraits<float, 3u, 3u, float, float, float> > >::Initialize() at itkDeformableSimplexMesh3DFilter.hxx:200 0x4aaa38 <br> itk::DeformableSimplexMesh3DFilter<itk::SimplexMesh<float, 3u, itk::DefaultStaticMeshTraits<float, 3u, 3u, float, float, float> >, itk::SimplexMesh<float, 3u, itk::DefaultStaticMeshTraits<float, 3u, 3u, float, float, float> > >::GenerateData() at itkDeformableSimplexMesh3DFilter.hxx:122 0x4a90d5 <br> itk::ProcessObject::UpdateOutputData() at 0x509fbd <br> itk::DataObject::Update() at 0x514410 <br> Deformation::inflate() at Deformation.cpp:89 0x49d9f7 <br><br></font></div>Best regards,<br><br></div>Sebastian.<br></div>
</div><br></div>