# Is there a way to have skinned line segments?

**URL:** <https://discourse.threejs.org/t/is-there-a-way-to-have-skinned-line-segments/43958>\
**Category:** Questions\
**Tags:** skinned-mesh\
**Created:** [October 24, 2022, 6:42pm UTC](https://discourse.threejs.org/t/is-there-a-way-to-have-skinned-line-segments/43958 "2022-10-24T18:42:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![prominent](https://avatars.discourse-cdn.com/v4/letter/p/f08c70/32.png) [@prominent](https://discourse.threejs.org/u/prominent)\
**Post date:** [October 24, 2022, 6:42pm UTC](https://discourse.threejs.org/t/is-there-a-way-to-have-skinned-line-segments/43958/1 "2022-10-24T18:42:04Z")

</div>

Is there a way to have a skinned line segments?  
Seems like to use skinned vertices, it has to be a SkinnedMesh, which uses triangles… but how would I use line segments instead (two vertices per line)?

---

<div class="post-metadata">

**Author:** ![hofk](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/hofk/32/44944_2.png) [@hofk](https://discourse.threejs.org/u/hofk)\
**Post date:** [October 24, 2022, 6:52pm UTC](https://discourse.threejs.org/t/is-there-a-way-to-have-skinned-line-segments/43958/2 "2022-10-24T18:52:24Z")

</div>

What’s the point?

With skinned mesh, the surface of triangles adapts to the bones in the skeleton.  
The skeleton consists of lines that can be made visible with the skeleton helper. 🤔

---

<div class="post-metadata">

**Author:** ![prominent](https://avatars.discourse-cdn.com/v4/letter/p/f08c70/32.png) [@prominent](https://discourse.threejs.org/u/prominent)\
**Post date:** [October 24, 2022, 6:56pm UTC](https://discourse.threejs.org/t/is-there-a-way-to-have-skinned-line-segments/43958/3 "2022-10-24T18:56:22Z")

</div>

For example, I have line segments that are modeled into some 3d shape like a cube for example… I have an animated skeleton that would animate those vertices of the lines so that the lines are transformed… however, I can’t find any way to use line segments with a skinned mesh… ☹

---

<div class="post-metadata">

**Author:** ![hofk](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/hofk/32/44944_2.png) [@hofk](https://discourse.threejs.org/u/hofk)\
**Post date:** [October 24, 2022, 7:11pm UTC](https://discourse.threejs.org/t/is-there-a-way-to-have-skinned-line-segments/43958/4 "2022-10-24T19:11:41Z")

</div>

I see.

Do they have to be lines? Can’t you use a cylinder with a minimum number of radial and length segments?  
Perhaps you could try a variation of my example.

From the [Collection of examples from discourse.threejs.org](https://discourse.threejs.org/t/collection-of-examples-from-discourse-threejs-org/4315)

[CustomCylinderAndKnee](https://hofk.de/main/discourse.threejs/2022/Skeleton/CustomCylinderAndKnee.html)  
[CustomCylinderAndSphereKnee](https://hofk.de/main/discourse.threejs/2022/Skeleton/CustomCylinderAndSphereKnee.html)

---

<div class="post-metadata">

**Author:** ![prominent](https://avatars.discourse-cdn.com/v4/letter/p/f08c70/32.png) [@prominent](https://discourse.threejs.org/u/prominent)\
**Post date:** [October 24, 2022, 7:14pm UTC](https://discourse.threejs.org/t/is-there-a-way-to-have-skinned-line-segments/43958/5 "2022-10-24T19:14:00Z")

</div>

unfortunately it has to be linesegments, and multiple line segments need to be transformed by a single bone( not one bone per line ).

---

<div class="post-metadata">

**Author:** ![hofk](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/hofk/32/44944_2.png) [@hofk](https://discourse.threejs.org/u/hofk)\
**Post date:** [October 24, 2022, 7:17pm UTC](https://discourse.threejs.org/t/is-there-a-way-to-have-skinned-line-segments/43958/6 "2022-10-24T19:17:45Z")

</div>

This sounds complicated and certainly requires a very specific solution. ☹
