Mesh Creation#
These examples demo how to read various file types into PyVista mesh objects, create meshes from NumPy arrays, and how to create primitive geometric objects like spheres, arrows, cubes, ellipsoids and more.
Once a mesh is loaded, it is ready for plotting with just a few lines of code - explore these examples to get started with using PyVista for your data.
Creating an Explicit Structured Grid
Creating an Explicit Structured Grid
Geometric Objects
Create a Kochanek Spline
Parametric Geometric Objects
Pixel Art of ALIEN MONSTERS
Platonic Solids
Create Point Cloud
Create a PointSet
Create PolyData
Triangle Strips
Unstructured Grid with Polyhedra
Unstructured Grid with Polyhedra
Create Sphere Mesh Multiple Ways
Create Sphere Mesh Multiple Ways
Creating a Spline
Creating a Structured Surface
Drape 2D Surface From Line
Create Triangulated Surface
Plot Truss-like FEA Solution with Cylinders
Plot Truss-like FEA Solution with Cylinders
Creating a Uniform Grid
Creating an Unstructured Grid
Linear Cells
Working with glTF Files
Working with VRML Files
Read FEniCS/Dolfin Meshes
Load and Plot from a File
Read Image Files
Parallel Files
Load data using a Reader
Terrain Following Mesh
Wrapping Other Objects