![](/img/trans.png)
[英]How to obtain the centroid of cells/elements in VTK?
我知道如何從這篇文章中獲取非結構化網格中點的坐標: vtk to matplotlib using numpy 但是,我試圖找到一個 function,它采用非結構化 VTK 網格並返回單元格/元素“中心”的坐標。 特別是,我正在使用由四邊形元素組成的圓柱體。 這是我到目前為止的代碼: 我嘗試從 ...
[英]How to obtain the centroid of cells/elements in VTK?
我知道如何從這篇文章中獲取非結構化網格中點的坐標: vtk to matplotlib using numpy 但是,我試圖找到一個 function,它采用非結構化 VTK 網格並返回單元格/元素“中心”的坐標。 特別是,我正在使用由四邊形元素組成的圓柱體。 這是我到目前為止的代碼: 我嘗試從 ...