# Is it possible to change lines join type

**URL:** https://discourse.vtk.org/t/is-it-possible-to-change-lines-join-type/4008
**Category:** Support
**Created:** [August 18, 2020, 8:54am UTC](https://discourse.vtk.org/t/is-it-possible-to-change-lines-join-type/4008 "2020-08-18T08:54:39Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![embeddedmz](https://discourse.vtk.org/user_avatar/discourse.vtk.org/embeddedmz/32/12_2.png) [@embeddedmz](https://discourse.vtk.org/u/embeddedmz)
#### Post date: [August 18, 2020, 8:54am UTC](https://discourse.vtk.org/t/is-it-possible-to-change-lines-join-type/4008/1 "2020-08-18T08:54:39Z")

</div>

Hi everyone,

The title says it all. Take this example : [https://lorensen.github.io/VTKExamples/site/Cxx/GeometricObjects/PolyLine/](https://lorensen.github.io/VTKExamples/site/Cxx/GeometricObjects/PolyLine/) and insert this line of code after line 68  
`actor->GetProperty()->SetLineWidth(14);`

Build & run the example, you will see that there is a gap between lines.

When using solely Qt to draw the same thing, such a gap doesn’t exist (there’s 3 type of pen joins : Round, Bevel and Mitter according to this example [https://doc.qt.io/qt-5/qtwidgets-painting-basicdrawing-example.html](https://doc.qt.io/qt-5/qtwidgets-painting-basicdrawing-example.html)).

Does VTK offer something to set the join type between lines ?

Thanks.

---

<div class="post-metadata">

### Author: ![amaclean](https://discourse.vtk.org/user_avatar/discourse.vtk.org/amaclean/32/224_2.png) [@amaclean](https://discourse.vtk.org/u/amaclean)
#### Post date: [August 20, 2020, 12:03am UTC](https://discourse.vtk.org/t/is-it-possible-to-change-lines-join-type/4008/2 "2020-08-20T00:03:27Z")

</div>

All `SetLineWidth` is doing is setting the width of each segment in screen units. Even with the default line width of 1, if you zoom in, you will see a slight discontinuity. This is because the lines forming the object are discrete not continuous. So the short answer is that there are no pen joins in VTK.

However, you could try `vtkImplicitModeller` as in [Hello](https://lorensen.github.io/VTKExamples/site/Cxx/VisualizationAlgorithms/Hello/).  
And you will get a result something like this:  
 ![Hello](https://discourse.vtk.org/uploads/default/original/2X/0/0ff124e2dfdfced275a876ce3511150a5728a8e9.png)

---

<div class="post-metadata">

### Author: ![embeddedmz](https://discourse.vtk.org/user_avatar/discourse.vtk.org/embeddedmz/32/12_2.png) [@embeddedmz](https://discourse.vtk.org/u/embeddedmz)
#### Post date: [August 20, 2020, 8:12am UTC](https://discourse.vtk.org/t/is-it-possible-to-change-lines-join-type/4008/3 "2020-08-20T08:12:17Z")

</div>

Thanks for the reply.
