# Is there a way to set BABYLON.MeshBuilder.CreateLines width?

**URL:** https://forum.babylonjs.com/t/is-there-a-way-to-set-babylon-meshbuilder-createlines-width/31661
**Category:** Questions
**Created:** [June 24, 2022, 12:29pm UTC](https://forum.babylonjs.com/t/is-there-a-way-to-set-babylon-meshbuilder-createlines-width/31661 "2022-06-24T12:29:24Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![tinedol22](https://avatars.discourse-cdn.com/v4/letter/t/e274bd/32.png) [@tinedol22](https://forum.babylonjs.com/u/tinedol22)
#### Post date: [June 24, 2022, 12:29pm UTC](https://forum.babylonjs.com/t/is-there-a-way-to-set-babylon-meshbuilder-createlines-width/31661/1 "2022-06-24T12:29:24Z")

</div>

I cant find a way to set width to line. I think this would also be very usefull feature in a constructor, but my guess is lines just dont work like that.

scaling doesnt work, it just changes location of, neither does width and height.

Try it yourself 🙂

> **[Babylon.js Playground](https://playground.babylonjs.com/#Y7CS4N)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

---

<div class="post-metadata">

### Author: ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)
#### Post date: [June 24, 2022, 1:17pm UTC](https://forum.babylonjs.com/t/is-there-a-way-to-set-babylon-meshbuilder-createlines-width/31661/2 "2022-06-24T13:17:21Z")

</div>

Unfortunately this is a OpenGL problem, the spec doesn’t require allowing to change the width of a line ☹ [javascript - How to use gl.lineWidth() - Stack Overflow](https://stackoverflow.com/questions/47444239/how-to-use-gl-linewidth) To achieve the effect of “thicker” lines people usually create cylinder meshes.
