pyvistahelper module#

This module provides helper functions for pyvista (https://pyvista.org/) for HomCloud.

homcloud.pyvistahelper.Bitmap3D(array)[source]#

Returns PyVista’s mesh object for 3d array bitmap.

Parameters:

array (numpy.ndarray[(Any, Any, Any), float]) – 3d array

Returns:

PyVista’s mesh object

Return type:

pyvista.ImageData

homcloud.pyvistahelper.Lines(lines)[source]#

Returns PyVista’s mesh object for lines.

Parameters:

array (numpy.ndarray[(Any, 2, 3), float]) – list of lines

Returns:

PyVista’s mesh object

Return type:

pyvista.PolyData

homcloud.pyvistahelper.Loop(points)[source]#

Returns PyVista’s mesh object for a loop.

Parameters:

array (numpy.ndarray[(Any, 3), float]) – list of points

Returns:

PyVista’s mesh object

Return type:

pyvista.PolyData

homcloud.pyvistahelper.SparseVoxels(coords)[source]#

Returns PyVista’s mesh object for triangles.

Parameters:

array (numpy.ndarray[(Any, 3), float]) – list of voxels

Returns:

PyVista’s mesh object

Return type:

pyvista.UnstructuredGrid

homcloud.pyvistahelper.Triangles(triangles)[source]#

Returns PyVista’s mesh object for triangles.

Parameters:

array (numpy.ndarray[(Any, 3, 3), float]) – list of triangles

Returns:

PyVista’s mesh object

Return type:

pyvista.PolyData