# What is the correct way plot particles and clip the scene?

**URL:** https://discourse.paraview.org/t/what-is-the-correct-way-plot-particles-and-clip-the-scene/5696
**Category:** ParaView Support
**Created:** [October 31, 2020, 1:03pm UTC](https://discourse.paraview.org/t/what-is-the-correct-way-plot-particles-and-clip-the-scene/5696 "2020-10-31T13:03:42Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Reuben\_Kraft](https://discourse.paraview.org/user_avatar/discourse.paraview.org/reuben_kraft/32/5233_2.png) [@Reuben\_Kraft](https://discourse.paraview.org/u/Reuben_Kraft)
#### Post date: [October 31, 2020, 1:03pm UTC](https://discourse.paraview.org/t/what-is-the-correct-way-plot-particles-and-clip-the-scene/5696/1 "2020-10-31T13:03:42Z")

</div>

I am looking for a simple example that shows how plot particles that I can color according to point data and clip. I created a VTP file. It loads properly. The coloring by point data works great too. I have to visualize the points using the point gaussian option. However, if I want to clip the science, paraview crashes or does not show the correct clip. I am not sure I am using the correct format and could not find an example online. I am confused if I should be using cell option, but paraview complains when I do not include it.

Any suggestions or help?

Thanks,  
Reuben

Here is an example of my current VTP file:

```
<?xml version="1.0"?>
<VTKFile type="UnstructuredGrid" version="0.1" byte_order="LittleEndian">
	<UnstructuredGrid>
		<Piece NumberOfPoints="3" NumberOfCells="3">
			<Points>
				<DataArray type="Float64" NumberOfComponents="3" format="ascii">
					-8.440588e+01 5.965692e+01 2.186531e+01
					-9.275425e+01 4.851919e+01 -4.325278e+01
					-1.052648e+02 2.065449e+01 1.702934e+01
				</DataArray>
			</Points>
			 <Cells>
				<DataArray type="Int32" Name="connectivity" format="ascii">
					0
					1
					2
				</DataArray>
				<DataArray type="Int32" Name="offsets" format="ascii">
					1
					1
					1
				</DataArray>
				<DataArray type="Int32" Name="types" format="ascii">
					1
					1
					1
				</DataArray>
			</Cells>
			 <PointData>
				<DataArray type="Int32" Name="landmarks" NumberofComponents="1" format="ascii">
					0
					0
					1
				</DataArray>
				<DataArray type="Int32" Name="materials" NumberofComponents="1" format="ascii">
					1
					1
	        0
				</DataArray>
			</PointData>
		</Piece>
	</UnstructuredGrid>
</VTKFile>
```

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [November 2, 2020, 8:56am UTC](https://discourse.paraview.org/t/what-is-the-correct-way-plot-particles-and-clip-the-scene/5696/2 "2020-11-02T08:56:06Z")

</div>

Hi,

> However, if I want to clip the science, paraview crashes or does not show the correct clip.

Please provide exact steps to reproduce.

---

<div class="post-metadata">

### Author: ![Reuben\_Kraft](https://discourse.paraview.org/user_avatar/discourse.paraview.org/reuben_kraft/32/5233_2.png) [@Reuben\_Kraft](https://discourse.paraview.org/u/Reuben_Kraft)
#### Post date: [November 2, 2020, 12:58pm UTC](https://discourse.paraview.org/t/what-is-the-correct-way-plot-particles-and-clip-the-scene/5696/3 "2020-11-02T12:58:45Z")

</div>

1. Open Deformed\_Plot\_0.vtu
2. Render points as point gaussian
3. enable clipping filter
4. Render points as point gaussian with Gaussian radius of 2
5. Invert clipping (this step does not work)

See my steps here: [https://www.loom.com/share/d40e7a4ee36b42e598870ecdcb184215](https://www.loom.com/share/d40e7a4ee36b42e598870ecdcb184215)  
File: [Deformed\_Plot\_0.vtu](https://discourse.paraview.org/uploads/short-url/fiYcqHIUgrRwoJdn4gBpkENfNcd.vtu) (1.0 KB)

---

<div class="post-metadata">

### Author: ![Reuben\_Kraft](https://discourse.paraview.org/user_avatar/discourse.paraview.org/reuben_kraft/32/5233_2.png) [@Reuben\_Kraft](https://discourse.paraview.org/u/Reuben_Kraft)
#### Post date: [November 6, 2020, 2:38pm UTC](https://discourse.paraview.org/t/what-is-the-correct-way-plot-particles-and-clip-the-scene/5696/4 "2020-11-06T14:38:20Z")

</div>

Hi -

Just wanted to follow up. Even if there is an example VTP file out there that someone is willing to share, I can probably take it from there. To be specific I am looking for a particle file that you can clip. That’s it!

Thanks,  
Reubn

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [November 9, 2020, 11:34am UTC](https://discourse.paraview.org/t/what-is-the-correct-way-plot-particles-and-clip-the-scene/5696/5 "2020-11-09T11:34:08Z")

</div>

Your loom link doesn’t seems to work, it is all blurry for some reasons.

What do you mean by:

- enable clipping filter

?

---

<div class="post-metadata">

### Author: ![Reuben\_Kraft](https://discourse.paraview.org/user_avatar/discourse.paraview.org/reuben_kraft/32/5233_2.png) [@Reuben\_Kraft](https://discourse.paraview.org/u/Reuben_Kraft)
#### Post date: [November 9, 2020, 4:00pm UTC](https://discourse.paraview.org/t/what-is-the-correct-way-plot-particles-and-clip-the-scene/5696/6 "2020-11-09T16:00:14Z")

</div>

I am sorry about the loom link, please try this [https://youtu.be/qmiYOYuCGLw](https://youtu.be/qmiYOYuCGLw).

By clip I mean the button in the attached picture

 ![clip](https://discourse.paraview.org/uploads/default/original/2X/1/155106d8a054d46cf44eb711bf34ec84c08bad21.png)

If I have a collection of particles, I want to clip half of them away.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [November 9, 2020, 4:47pm UTC](https://discourse.paraview.org/t/what-is-the-correct-way-plot-particles-and-clip-the-scene/5696/7 "2020-11-09T16:47:07Z")

</div>

There is some issues with your file, you can check the spreadsheet. You could use a polyvertex instead.

[Deformed\_Plot\_0(1).vtu](https://discourse.paraview.org/uploads/short-url/cJnSoxAer8EmNXPFpRl2rUWUeMc.vtu) (1.0 KB)

---

<div class="post-metadata">

### Author: ![Reuben\_Kraft](https://discourse.paraview.org/user_avatar/discourse.paraview.org/reuben_kraft/32/5233_2.png) [@Reuben\_Kraft](https://discourse.paraview.org/u/Reuben_Kraft)
#### Post date: [November 9, 2020, 6:21pm UTC](https://discourse.paraview.org/t/what-is-the-correct-way-plot-particles-and-clip-the-scene/5696/8 "2020-11-09T18:21:58Z")

</div>

great thank you. I see what you did. Will this be an issue if I go to a large number of points, say 100,000? Do you think I can keep it as a single cell polyvertex?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [November 9, 2020, 6:25pm UTC](https://discourse.paraview.org/t/what-is-the-correct-way-plot-particles-and-clip-the-scene/5696/9 "2020-11-09T18:25:56Z")

</div>

Actually, you should always prefer polyvertex.

---

<div class="post-metadata">

### Author: ![steve\_r](https://discourse.paraview.org/user_avatar/discourse.paraview.org/steve_r/32/8305_2.png) [@steve\_r](https://discourse.paraview.org/u/steve_r)
#### Post date: [November 10, 2020, 1:27pm UTC](https://discourse.paraview.org/t/what-is-the-correct-way-plot-particles-and-clip-the-scene/5696/10 "2020-11-10T13:27:38Z")

</div>

I had a similar issue when trying to clip away portions of a particle cloud that was rendered as “point gaussian”. I was expecting to cut pieces out from the rendered spheres, but the clip filter only removes the data points outside the clip region. So what you get is a smaller amount of the points, that you then can turn into “gaussian” rendered spheres again. See attached.

I would love to have clipping planes that apply to the rendering, but that seems specific to the render engine. The NVIDIA IndeX volume renderer supports this, for example.

 ![Screenshot 2020-11-10 14.13.14 (2) Small](https://discourse.paraview.org/uploads/default/original/2X/a/ac9501789c8b836e0ca026b525524a308ad8ac79.jpeg)  
 ![Screenshot 2020-11-10 14.13.04 (2) Small](https://discourse.paraview.org/uploads/default/original/2X/d/def1e09ddfb2288ee34f7c06cfee4439968b7176.jpeg)
