用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/vamseeachanta/workspace-hub --skill pyvista-3d命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | pyvista-3d |
| description | AI interface skill for PyVista 3D visualization --- VTK wrapper for mesh rendering, STL/OBJ/VTK I/O, scalar coloring, offscreen rendering, and engineering analysis post-processing. |
| type | reference |
| version | 1.0.0 |
| updated | "2026-03-31T00:00:00.000Z" |
| category | engineering |
| triggers | ["PyVista","pyvista","3D mesh visualization","VTK visualization Python","offscreen 3D rendering","mesh quality visualization","point cloud rendering","STL visualization"] |
| capabilities | ["input_generation","execution","output_parsing","failure_diagnosis","validation"] |
| requires | [] |
| see_also | ["blender-interface","paraview-interface","gmsh-meshing"] |
| tags | ["pyvista","vtk","3d","mesh","visualization"] |
| scripts_exempt | true |
PyVista (MIT, 3.6k stars) is a Pythonic wrapper around VTK for 3D spatial data visualization. It provides a streamlined API for rendering meshes, point clouds, STL/OBJ geometry, and scalar fields without low-level VTK boilerplate.
| Feature | Details |
|---|---|
| Mesh rendering | Surface, wireframe, point cloud, volume rendering |
| Scalar coloring | Map data arrays to colormaps (coolwarm, viridis, plasma, etc.) |
| File I/O | STL, OBJ, PLY, VTK, VTP --- plus all meshio-supported formats |
| Offscreen rendering | off_screen=True for headless/CI environments |
| GPU acceleration | Uses OpenGL via VTK; works with NVIDIA GPUs |
| Jupyter integration | Interactive 3D in notebooks via trame |
| Mesh quality | Built-in quality metrics (scaled Jacobian, aspect ratio, etc.) |
| Engineering use | Pipe geometry, FEA results, terrain, bathymetry, point clouds |
import pyvista as pv
# Load and render a mesh
mesh = pv.read("geometry.stl")
mesh.plot(scalars="pressure", cmap="coolwarm")
# Offscreen rendering
plotter = pv.Plotter(off_screen=True, window_size=(1280, 720))
plotter.add_mesh(mesh, scalars="depth", cmap="viridis")
plotter.screenshot("output.png")
plotter.close()
# Pipe geometry from spline
import numpy as np
t = np.linspace(0, 10, 50)
points = np.column_stack((t, np.zeros_like(t), np.cosh((t-5)/5)))
spline = pv.Spline(points, n_points=200)
pipe = spline.tube(radius=, n_sides=)
pipe.plot()
PYVISTA_OFF_SCREEN=true or use off_screen=True in PlotterWhen the deliverable is an engineering animation/video and the full VTK/PyVista/ParaView rendering path is temporarily unavailable, unstable in the current runtime, or overkill for a first-pass approximation, use a deterministic raw RGB frame pipeline into ffmpeg. Keep the artifact clearly labeled as a visualization fallback, not a validated solver output, and verify it with ffprobe plus a preview frame before delivery.
Reference: references/rawvideo-ffmpeg-headless-fallback.md
cell_quality() segfaults on tube meshes with VTK 9.6; use deprecated compute_cell_quality() until PyVista 0.48+scripts/examples/pyvista_3d_evaluation.py