# Do the vtkMeshQuality fonctions for "pyramids" and "wedges" really work ?

**URL:** https://discourse.paraview.org/t/do-the-vtkmeshquality-fonctions-for-pyramids-and-wedges-really-work/9895
**Category:** Development
**Tags:** python, vtk
**Created:** [June 23, 2022, 2:59pm UTC](https://discourse.paraview.org/t/do-the-vtkmeshquality-fonctions-for-pyramids-and-wedges-really-work/9895 "2022-06-23T14:59:25Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Dav](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/d/977dab/32.png) [@Dav](https://discourse.paraview.org/u/Dav)
#### Post date: [June 23, 2022, 2:59pm UTC](https://discourse.paraview.org/t/do-the-vtkmeshquality-fonctions-for-pyramids-and-wedges-really-work/9895/1 "2022-06-23T14:59:25Z")

</div>

Dear community,  
I am developing a filter on **vtkUnstructuredGrid** with Python. When using the **vtkMeshQuality** filter for example to determine the volume of “pyramids” cells with the functions **vtkMeshQuality: :PyramidVolume (vtkCell \*cell)**, I have this error :

AttributeError: ‘vtkmodules.vtkFiltersVerdict.vtkMeshQuality’ object has no attribute ‘PyramidVolume’  
ERROR: In C:\glr\builds\paraview\paraview-ci\build\superbuild\paraview\src\VTK\Common\ExecutionModel\vtkExecutive.cxx, line 753  
vtkPVCompositeDataPipeline (00000275D6F9D0C0): Algorithm vtkPythonAlgorithm(00000275FF8DF9C0) returned failure for request: vtkInformation (00000275F77C4C90)

the program does not recognize these functions for pyramids and wedge, but they are present in the docs ([https://vtk.org/doc/nightly/html/classvtkMeshQuality.html#details](https://vtk.org/doc/nightly/html/classvtkMeshQuality.html#details)). I don’t understand why.  
Please what should I do to solve this problem?

Thank you for your answer

---

<div class="post-metadata">

### Author: ![spyridon97](https://discourse.paraview.org/user_avatar/discourse.paraview.org/spyridon97/32/11569_2.png) [@spyridon97](https://discourse.paraview.org/u/spyridon97)
#### Post date: [June 24, 2022, 9:59pm UTC](https://discourse.paraview.org/t/do-the-vtkmeshquality-fonctions-for-pyramids-and-wedges-really-work/9895/2 "2022-06-24T21:59:09Z")

</div>

@ben.boeckel Are static functions exposed in python?

---

<div class="post-metadata">

### Author: ![spyridon97](https://discourse.paraview.org/user_avatar/discourse.paraview.org/spyridon97/32/11569_2.png) [@spyridon97](https://discourse.paraview.org/u/spyridon97)
#### Post date: [June 24, 2022, 10:00pm UTC](https://discourse.paraview.org/t/do-the-vtkmeshquality-fonctions-for-pyramids-and-wedges-really-work/9895/3 "2022-06-24T22:00:39Z")

</div>

@Dav Have you tried just setting the quality metric that you want instead of using .e.g **PyramidVolume**?

P.S. would you mind showing me your code snipset?

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [June 24, 2022, 11:17pm UTC](https://discourse.paraview.org/t/do-the-vtkmeshquality-fonctions-for-pyramids-and-wedges-really-work/9895/4 "2022-06-24T23:17:01Z")

</div>

> [@spyridon97](#):
>
> Are static functions exposed in python?

Yes. `vtkFoo::Bar()` is exposed as `vtkFoo.Bar()`

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [June 24, 2022, 11:17pm UTC](https://discourse.paraview.org/t/do-the-vtkmeshquality-fonctions-for-pyramids-and-wedges-really-work/9895/5 "2022-06-24T23:17:52Z")

</div>

Which version of ParaView are you using? If older, it may genuinely not have those static member functions.

---

<div class="post-metadata">

### Author: ![spyridon97](https://discourse.paraview.org/user_avatar/discourse.paraview.org/spyridon97/32/11569_2.png) [@spyridon97](https://discourse.paraview.org/u/spyridon97)
#### Post date: [June 25, 2022, 12:06am UTC](https://discourse.paraview.org/t/do-the-vtkmeshquality-fonctions-for-pyramids-and-wedges-really-work/9895/6 "2022-06-25T00:06:39Z")

</div>

@Dav unless you are using Paraview master these functions won’t be available. These were introduced in [https://gitlab.kitware.com/vtk/vtk/-/merge\_requests/8832](https://gitlab.kitware.com/vtk/vtk/-/merge_requests/8832) and they will part of Paraview 5.11 soon. If you want to have access to these functions you can clone Paraview master.

---

<div class="post-metadata">

### Author: ![Dav](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/d/977dab/32.png) [@Dav](https://discourse.paraview.org/u/Dav)
#### Post date: [June 25, 2022, 10:09am UTC](https://discourse.paraview.org/t/do-the-vtkmeshquality-fonctions-for-pyramids-and-wedges-really-work/9895/7 "2022-06-25T10:09:36Z")

</div>

Hello,  
I’m using the 5.10.1 st Paraview version

---

<div class="post-metadata">

### Author: ![Dav](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/d/977dab/32.png) [@Dav](https://discourse.paraview.org/u/Dav)
#### Post date: [June 25, 2022, 10:26am UTC](https://discourse.paraview.org/t/do-the-vtkmeshquality-fonctions-for-pyramids-and-wedges-really-work/9895/8 "2022-06-25T10:26:32Z")

</div>

Thank you very much Sir, but how to clone Paraview master? are there some tutorials?

---

<div class="post-metadata">

### Author: ![spyridon97](https://discourse.paraview.org/user_avatar/discourse.paraview.org/spyridon97/32/11569_2.png) [@spyridon97](https://discourse.paraview.org/u/spyridon97)
#### Post date: [June 25, 2022, 3:01pm UTC](https://discourse.paraview.org/t/do-the-vtkmeshquality-fonctions-for-pyramids-and-wedges-really-work/9895/9 "2022-06-25T15:01:31Z")

</div>

You can either follow this [link](https://gitlab.kitware.com/paraview/paraview/-/blob/master/Documentation/dev/build.md) to clone and compile paraview or download the **nightly** paraview version from [Download | ParaView](https://www.paraview.org/download/). The second option does not require any cloning or compiling

---

<div class="post-metadata">

### Author: ![Dav](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/d/977dab/32.png) [@Dav](https://discourse.paraview.org/u/Dav)
#### Post date: [June 27, 2022, 8:40am UTC](https://discourse.paraview.org/t/do-the-vtkmeshquality-fonctions-for-pyramids-and-wedges-really-work/9895/10 "2022-06-27T08:40:54Z")

</div>

Thank you very much, it s working now
