pyvista.DataSetFilters.compute_cell_sizes#
- DataSetFilters.compute_cell_sizes(
- length: bool = True,
- area: bool = True,
- volume: bool = True,
- progress_bar: bool = False,
- vertex_count: bool = False,
0D (頂点数) ,1 D (長さ) ,2 D (面積) ,および3 D (体積) セルのサイズを計算します.
- パラメータ:
- 戻り値:
pyvista.DataSet
パラメータで設定されていれば
"VertexCount"
,"Length"
,"Area"
,"Volume"
の各配列を含みます cell_data を持つデータセットです. 戻り値の型は入力と一致します.
備考
セルが次元を持たない場合(例えば,6面体セルの長さ),対応する配列はすべてゼロになります.
例
飛行機の例のメッシュの面の面積を計算します.
>>> from pyvista import examples >>> surf = examples.load_airplane() >>> surf = surf.compute_cell_sizes(length=False, volume=False) >>> surf.plot(show_edges=True, scalars='Area')