Questions tagged [pyvista]

PyVista is a helper module for the Visualization Toolkit (VTK) that takes a different approach on interfacing with VTK through NumPy and direct array access.

http://www.pyvista.org

147 questions
0
votes
0 answers

Interactive plotting using pyvista and spyder

I have installed pyvista and its dependencies via conda install -c conda-forge pyvista in the ipython console in Spyder and after a bit of messing around it seems to work (I found that JsonCpp had to be installed manually from the console to access…
Dr Thomas
  • 3
  • 2
0
votes
1 answer

Check if a volume (.ply) contains a 3D-point

I'm looking for a solution to define if a given 3D-point is contained in a volume (defined by a polygon .ply file). I use PyVista to define my volume from a point cloud. But I do not understand how to manipulate the PLY volume, there is vertices and…
hugosc
  • 1
0
votes
1 answer

How to make a mesh (obj file) a solid on Python?

I've been working with pyvista on Python to filter a scan of my arm, obtaining an obj object in the end. But everytime I try to open the final result on SolidWorks it's only a mesh but though Python it shows up as it was a solid (I even extrude the…
Enrique
  • 1
  • 1
0
votes
1 answer

numpy-stl topological information of the stl fle read

Using the Python numpy-stl package: reading the .stl files we can get the geometrical information from the triangular mesh, vertex data, normals, areas etc, but can we access the topological information, the connectivity information? I am a newcomer…
0
votes
1 answer

Plotting several grids with labels in a legend

I have several meshes I read each of them using pyvista import pyvista as pv # read the data grid1 = pv.read('mesh1.vtk') grid2 = pv.read('mesh2.vtk') I want to plot them together on same plot having different colors I do : plotter =…
YAKOVM
  • 9,805
  • 31
  • 116
  • 217
0
votes
1 answer

How to use PyVista add vector arrow to 3D plot like ABC field?

I have plotted ABC feild contours, when I add vector arrows like Plotting Glyphs (Vectors). I don't know how to make mesh for 3D data. import pyvista as pv import numpy as np from numpy import mgrid xmin = -800. xmax = 800. Lx = xmax-xmin B0 = 1 k…
John Chen
  • 173
  • 10
0
votes
1 answer

Cythonize error: failed with exit status 2. numpy and pyvista

I'd like to Cythonize the following code, but I receive an error. import numpy as np cimport numpy as np import pyvista as pv from mesh_funcs import * cimport cython from libcpp cimport bool #import matplotlib.pyplot as plt #Getting mesh points…
Cam K
  • 127
  • 2
  • 2
  • 13
0
votes
1 answer

How can I avoid "Segmentation fault" error when plotting two Widgets with PyVista?

I have created a GUI with PyQt5 where there is an area in which I would like to plot some volumes. I sometime wish to slice the volumes for which I am using PyVista's "add_mesh_clip_plane" widget. It always works just fine the first time, but when I…
jLordMey
  • 9
  • 3
-1
votes
1 answer

PyVista Plotter in QFrame doesn't fill the full frame

I want to make a GUI with QtDesigner. There is a QFrame for the PyVista plot but the plot doesn't fill the full frame. Here is my code: from PySide6.QtWidgets import QApplication, QMainWindow from QT_Designer.Validation import Ui_MainWindow from…
RaHeSch
  • 13
  • 3
-2
votes
1 answer

OpenGL error while trying to interact Ursina and PyVista

Well, I have little knowledge about OpenGL. Please help me understand why the error show up and what could be the possible ways to solve the error. Here is my code: from ursina import * import pyvista as pv from pyvista import examples # Starting…
Sonarjit
  • 5
  • 2
-3
votes
1 answer

How to analyze several CAD files with python

I have several cad files that I want to analyze. I want to analyze several cad files (step file,stl file), like a plate with several holes inside of it. I want to extract all the dimensions of these files (height,width of the plate and radius of the…
Rasit Er
  • 19
  • 2
1 2 3
9
10