# Can I set line width and point size in vtkPolyData?

**URL:** https://discourse.vtk.org/t/can-i-set-line-width-and-point-size-in-vtkpolydata/13097
**Category:** Support
**Created:** [January 19, 2024, 5:06am UTC](https://discourse.vtk.org/t/can-i-set-line-width-and-point-size-in-vtkpolydata/13097 "2024-01-19T05:06:13Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![baker-Xie](https://discourse.vtk.org/user_avatar/discourse.vtk.org/baker-xie/32/8169_2.png) [@baker-Xie](https://discourse.vtk.org/u/baker-Xie)
#### Post date: [January 19, 2024, 5:06am UTC](https://discourse.vtk.org/t/can-i-set-line-width-and-point-size-in-vtkpolydata/13097/1 "2024-01-19T05:06:13Z")

</div>

I know how to set color in vtkPolydata.

And usually we can SetPointSize and LineWidth using vtkActor. But I have large amount of polydata, some of them include lines, some of them include points, I want to set line width and size seperately, and then merge them to one polydata and one vtkActor and render them. This will be more efficient. So how can I do?

---

<div class="post-metadata">

### Author: ![jaswantp](https://discourse.vtk.org/user_avatar/discourse.vtk.org/jaswantp/32/10046_2.png) [@jaswantp](https://discourse.vtk.org/u/jaswantp)
#### Post date: [January 19, 2024, 1:55pm UTC](https://discourse.vtk.org/t/can-i-set-line-width-and-point-size-in-vtkpolydata/13097/2 "2024-01-19T13:55:13Z")

</div>

Hello @baker-Xie

It is not possible to specify visual properties on vtkPolyData.

That being said, you can render all your vtkPolyData with one actor. Group all your vtkPolyData into a vtkCompositeDataSet and use vtkCompositePolyDataMapper with one vtkActor.
