pyvista.to_trimesh#
- to_trimesh( ) trimesh.Trimesh[ソース]#
Convert a PyVista mesh to a Trimesh mesh.
Point data is stored as
vertex_attributes.Cell data is stored as
face_attributes.Field data is stored as
metadata. Anyuser_dictkeys are stored directly as metadata.
注釈
No copies of point, cell, or data arrays are made. Use
copy()before converting to avoid any side effects.Added in version 0.47.
- パラメータ:
- mesh
DataSet Dataset to convert.
- triangulatebool, default:
False Triangulate the mesh before conversion. If the mesh has 3D cells, the mesh's surface is extracted. All 2D polygonal cells are triangulated as required, and all 0D and 1D cells or any unused points are ignored.
- pass_databool |
str| sequence[str], default:True Pass point, cell, and/or field data to the Trimesh object. All data is passed by default. Set this to
'point','cell','field'or any combination thereof to only pass specific fields.
- mesh
参考
例
See 他のオブジェクトのラップ for examples.