spateo.tdr.widgets.pick#

Module Contents#

Functions#

three_d_pick(→ pyvista.MultiBlock)

Pick the desired groups.

_interactive_pick(plotter, model[, picking_list, key, ...])

Add a checkbox button widget to the scene.

interactive_pick(→ pyvista.MultiBlock)

Add a checkbox button widget to pick the desired groups through the interactive window and output the picked groups.

overlap_pc_pick(→ [pyvista.PolyData, pyvista.PolyData])

Pick the point cloud inside the mesh model and point cloud outside the mesh model.

overlap_mesh_pick(→ pyvista.PolyData)

Pick the intersection between two mesh models.

overlap_pick(main_mesh, other_mesh[, main_pc, other_pc])

Add a checkbox button widget to pick the desired groups through the interactive window and output the picked groups.

spateo.tdr.widgets.pick.three_d_pick(model: Union[pyvista.PolyData, pyvista.UnstructuredGrid, pyvista.MultiBlock], key: str = 'groups', picked_groups: Union[str, list] = None) pyvista.MultiBlock[source]#

Pick the desired groups.

spateo.tdr.widgets.pick._interactive_pick(plotter, model, picking_list: Optional[list] = None, key: str = 'groups', label_size: int = 12, checkbox_size: int = 27, checkbox_color: Union[str, tuple, list] = 'blue', checkbox_position: tuple = (5.0, 5.0))[source]#

Add a checkbox button widget to the scene.

spateo.tdr.widgets.pick.interactive_pick(model: Union[pyvista.PolyData, pyvista.UnstructuredGrid, pyvista.MultiBlock], key: str = 'groups', checkbox_size: int = 27, label_size: int = 12) pyvista.MultiBlock[source]#

Add a checkbox button widget to pick the desired groups through the interactive window and output the picked groups.

Parameters
model

Reconstructed 3D model.

key

The key under which are the groups.

checkbox_size

The size of the button in number of pixels.

label_size

The font size of the checkbox labels.

Returns

A MultiBlock that contains all models you picked.

spateo.tdr.widgets.pick.overlap_pc_pick(pc: pyvista.PolyData, mesh: pyvista.PolyData) [pyvista.PolyData, pyvista.PolyData][source]#

Pick the point cloud inside the mesh model and point cloud outside the mesh model.

Parameters
pc

Reconstructed 3D point cloud model corresponding to mesh.

mesh

Reconstructed 3D mesh model.

Returns

Point cloud inside the mesh model. outside_pc: Point cloud outside the mesh model.

Return type

inside_pc

spateo.tdr.widgets.pick.overlap_mesh_pick(mesh1: pyvista.PolyData, mesh2: pyvista.PolyData) pyvista.PolyData[source]#

Pick the intersection between two mesh models.

Parameters
mesh1

Reconstructed 3D mesh model.

mesh2

Reconstructed 3D mesh model.

Returns

The intersection mesh model.

Return type

select_mesh

spateo.tdr.widgets.pick.overlap_pick(main_mesh: pyvista.PolyData, other_mesh: pyvista.PolyData, main_pc: Optional[pyvista.PolyData] = None, other_pc: Optional[pyvista.PolyData] = None)[source]#

Add a checkbox button widget to pick the desired groups through the interactive window and output the picked groups.

Parameters
main_mesh

Reconstructed 3D mesh model.

other_mesh

Reconstructed 3D mesh model.

main_pc

Reconstructed 3D point cloud model corresponding to main_mesh.

other_pc

Reconstructed 3D point cloud model corresponding to other_mesh.

Returns

A MultiBlock that contains all models you picked.