# ‘SetSpacing’: is not a member of ‘itk::VesselTubeSpatialObject\<2\>’

**URL:** <https://discourse.slicer.org/t/setspacing-is-not-a-member-of-itk-vesseltubespatialobject-2/19020>\
**Category:** Development\
**Tags:** itk\
**Created:** [August 2, 2021, 7:04am UTC](https://discourse.slicer.org/t/setspacing-is-not-a-member-of-itk-vesseltubespatialobject-2/19020 "2021-08-02T07:04:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mahesh\_Timmanagoudar](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mahesh_timmanagoudar/32/10914_2.png) [@Mahesh\_Timmanagoudar](https://discourse.slicer.org/u/Mahesh_Timmanagoudar)\
**Post date:** [August 2, 2021, 7:04am UTC](https://discourse.slicer.org/t/setspacing-is-not-a-member-of-itk-vesseltubespatialobject-2/19020/1 "2021-08-02T07:04:41Z")

</div>

Error C2039 ‘SetSpacing’: is not a member of ‘itk::VesselTubeSpatialObject\<2\>’ [D:\W4-rel\S-bld\Slicer-build\E\TubeTK\Applications\SegmentTubeUsingMinimalPath\SegmentTubeUsingMinimalPathLib.vcxproj] Slicer D:\W4\S-rel\S-bld\TubeTK\Base\Segmentation\itktubeSegmentTubesUsingMinimalPathFilter.hxx 364

Hello I am upgrading ITK4.4 to latest ITK version. While building I got above error.  
In latest version of ITK, SetSpacing and GetSpacing methods are deprecated. May I know how can i solve the above error.

Actually the method is called at itktubeSegmentTubesUsingMinimalPathFilter.hxx line number 364

typename TubeType::Pointer pTube = TubeType::New(); //line number 361  
pTube-\>SetPoints(tubePointList); //line number 362  
pTube-\>ComputeTangentAndNormals(); //line number 363  
pTube-\>SetSpacing(tubeSpacing); //line number 364  
pTube-\>SetId(i); //line number 365

Please let me know how to solve this issue.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [August 2, 2021, 11:59am UTC](https://discourse.slicer.org/t/setspacing-is-not-a-member-of-itk-vesseltubespatialobject-2/19020/2 "2021-08-02T11:59:01Z")

</div>

Your can reach developers of ITK at [https://discourse.itk.org](https://discourse.itk.org). Please ask the question there and post the link of your question here (to allow people who are interested in this topic to join the discussing there).
