# vtkPointDensity

**URL:** https://discourse.paraview.org/t/vtkpointdensity/3916
**Category:** ParaView Support
**Created:** [March 30, 2020, 4:03pm UTC](https://discourse.paraview.org/t/vtkpointdensity/3916 "2020-03-30T16:03:41Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![woodscn](https://discourse.paraview.org/user_avatar/discourse.paraview.org/woodscn/32/3226_2.png) [@woodscn](https://discourse.paraview.org/u/woodscn)
#### Post date: [March 30, 2020, 4:03pm UTC](https://discourse.paraview.org/t/vtkpointdensity/3916/1 "2020-03-30T16:03:41Z")

</div>

The documentation for the VTK Point Density filter (not available in ParaView) references an alternative method for getting the same result:

> As an interesting side note: using the  
> vtkPointInterpolation class with a vtkLinearKernel, a (scalar) weighting  
> point attribute, a point cloud source, and an input volume produces the  
> same result as this filter does (assuming that the input volume is the  
> same).

Is this alternative method something that is already exposed with ParaView, without having to mess with an XML plugin? The documentation and behavior of things like PointVolumeInterpolator doesn’t seem quite right, but perhaps I’m misunderstnading something?

---

<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: [March 31, 2020, 1:51am UTC](https://discourse.paraview.org/t/vtkpointdensity/3916/2 "2020-03-31T01:51:16Z")

</div>

I was able to generate density using the Point DataSet Interpolator Filter.

---

<div class="post-metadata">

### Author: ![woodscn](https://discourse.paraview.org/user_avatar/discourse.paraview.org/woodscn/32/3226_2.png) [@woodscn](https://discourse.paraview.org/u/woodscn)
#### Post date: [March 31, 2020, 2:02pm UTC](https://discourse.paraview.org/t/vtkpointdensity/3916/3 "2020-03-31T14:02:10Z")

</div>

I must be missing something about how that filter works. Can you explain how you did that?

---

<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: [April 1, 2020, 2:30am UTC](https://discourse.paraview.org/t/vtkpointdensity/3916/4 "2020-04-01T02:30:16Z")

</div>

Here is a state file.  
[pointInterp.pvsm](https://discourse.paraview.org/uploads/short-url/fp6Y88CDmj0Sdp0MtN9MopioBys.pvsm) (600.9 KB)

Load the state and switch to “Volume” representation.

The `Point Volume Interpolator` seems to be broken though.

---

<div class="post-metadata">

### Author: ![woodscn](https://discourse.paraview.org/user_avatar/discourse.paraview.org/woodscn/32/3226_2.png) [@woodscn](https://discourse.paraview.org/u/woodscn)
#### Post date: [May 8, 2020, 6:03am UTC](https://discourse.paraview.org/t/vtkpointdensity/3916/5 "2020-05-08T06:03:27Z")

</div>

I got pulled away from this for a while, but I had a chance to look at it more closely. My results using the vtkPointDensity filter weren’t consistent. It’s entirely possible that my XML plugin is faulty (it’s certainly crude), so I’ve attached it for comparison. The state file computes the density both ways.  
[PointDensityPlugin.xml](https://discourse.paraview.org/uploads/short-url/q7F2EDhWh75yHL9Rtu2okeQl0Kk.xml) (1.3 KB)  
[pointInterpCompare.pvsm](https://discourse.paraview.org/uploads/short-url/xUxFDFLVyV4J8iGzQKvmh1dcgqs.pvsm) (928.6 KB)

---

<div class="post-metadata">

### Author: ![woodscn](https://discourse.paraview.org/user_avatar/discourse.paraview.org/woodscn/32/3226_2.png) [@woodscn](https://discourse.paraview.org/u/woodscn)
#### Post date: [May 15, 2020, 5:12pm UTC](https://discourse.paraview.org/t/vtkpointdensity/3916/6 "2020-05-15T17:12:16Z")

</div>

Bump  
@mwestphal

---

<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: [May 18, 2020, 1:20am UTC](https://discourse.paraview.org/t/vtkpointdensity/3916/7 "2020-05-18T01:20:33Z")

</div>

Sorry, I had no time to investigate this.  
You can get into contact with our sales service in order to get paid support.  
[https://www.kitware.com/what-we-offer/#support](https://www.kitware.com/what-we-offer/#support)
