# Can I register two cylinder?

**URL:** <https://discourse.slicer.org/t/can-i-register-two-cylinder/5655>\
**Category:** Support\
**Created:** [February 6, 2019, 12:30am UTC](https://discourse.slicer.org/t/can-i-register-two-cylinder/5655 "2019-02-06T00:30:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![timeanddoctor](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/timeanddoctor/32/5839_2.png) [@timeanddoctor](https://discourse.slicer.org/u/timeanddoctor)\
**Post date:** [February 6, 2019, 12:30am UTC](https://discourse.slicer.org/t/can-i-register-two-cylinder/5655/1 "2019-02-06T00:30:17Z")

</div>

I have two unequal cylinders (also know the coordinates of their endpoints). Can 3dslicer automatically create a matrix that eventually overlaps their centerlines?

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [February 6, 2019, 12:47pm UTC](https://discourse.slicer.org/t/can-i-register-two-cylinder/5655/2 "2019-02-06T12:47:05Z")

</div>

Sounds like you just need to come up with the formula for the transform with a little python script. A computer graphics textbook can explain what calculations are needed.
