<div>Hi,ITKUSERS</div><div>&nbsp; &nbsp;I have some problems using this filter.</div><div>&nbsp; &nbsp;</div><div>&nbsp; &nbsp;</div>&nbsp; //typedef itk::DeformableSimplexMesh3DGradientConstraintForceFilter&lt;SimplexMeshType,SimplexMeshType&gt; DeformFilterType;<div><br></div><div>&nbsp; The code below is a way to deform a mesh,but there is no changes after the first loop,but when I change the "simplexMesh2 = &nbsp;m_DeformFilter-&gt;GetOutput();" to "&nbsp;m_SimplexMesh&nbsp;= &nbsp;m_DeformFilter-&gt;GetOutput();" There will be an error:</div><div>unhandled exception at 0x00b36636 in myProject.exe: 0xC0000005: write position 0xcdcdce2d. the access violation</div><div><br></div><div>&nbsp;</div><div><br><div>void&nbsp;</div><div>DeformableModelApplication</div><div>::DeformMesh()</div><div>{</div><div>&nbsp; if (!m_ImageLoaded || (!m_MeshLoaded &amp;&amp; !m_MeshCreated) || !m_PreprocessingFinished)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; return;</div><div>&nbsp; &nbsp; }</div><div>&nbsp;SimplexMeshType::Pointer simplexMesh2 = m_SimplexMesh;</div><div>&nbsp; const unsigned int numberOfIterationsToGo = m_DeformFilter-&gt;GetIterations();// right,here is 3</div><div>&nbsp;</div><div>&nbsp; for( unsigned int i=0; i&lt;numberOfIterationsToGo; i++ )</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;std::cout &lt;&lt; " Iteration &nbsp; " &lt;&lt; i &lt;&lt; std::endl;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> &nbsp;m_SimplexMesh-&gt;DisconnectPipeline();</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span> &nbsp;m_DeformFilter-&gt;SetInput( m_SimplexMesh );</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span> &nbsp;m_DeformFilter-&gt;SetIterations(1);&nbsp;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> &nbsp;m_DeformFilter-&gt;Update();</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span> &nbsp;simplexMesh2 = &nbsp;m_DeformFilter-&gt;GetOutput();</div><div>&nbsp; }</div><div>}</div><div><br></div><div><br></div><div>&nbsp; &nbsp;How can solve this problem?</div><div>&nbsp; &nbsp;Thank you in advance.</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;eddia</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DUT,Dalian,Liaoning,China.</div><span id="spnSign"></span></div>