tomo3D.viewers.viewer_triangulations module¶
-
class
tomo3D.viewers.viewer_triangulations.
TriangulationPlot
(meshes, clouds=None, extNormals_List=None, extNormals_coords=None)[source]¶ Bases:
object
Class to visualize triangulation(s) and/or point cloud(s) with their associated normals Input paramters:
- meshes (Mandatory): List containing the pyvista triangulations to be shown by the viewer
- clouds (Optional): List containing the original point clouds associated to the triangulations.
- This parameter is useful to compare the coordinates adjusted to the mesh and the original ones
- -extNormals (Optional): List containing the original normals associated to each vertex in the
- Delaunay triangulation. In general, this parameter is used to compare the normals computed inside Scipion (Pyvista normals stored in the meshes objects) and those normals obtained with other software (PySeg, Dynamo…)
- Usage:
- import TriangulationPlot plt = TriangulationPlot([mesh], clouds=[cloud], extNormals=[extNormal]) plt.initializePlot()
-
tomo3D.viewers.viewer_triangulations.
guiThread
(classObj, methodName, *args, **kwargs)[source]¶ Create a new process to prevent the exec_ loop of the GUI from blocking the main thread. In order to work, the GUI classes must be instantiated withing the process.