spateo.tdr.widgets.pick¶
Functions¶
|
Pick the desired groups. |
|
Add a checkbox button widget to the scene. |
|
Add a checkbox button widget to pick the desired groups through the interactive window and output the picked groups. |
|
Pick the point cloud inside the mesh model and point cloud outside the mesh model. |
|
Pick the intersection between two mesh models. |
|
Add a checkbox button widget to pick the desired groups through the interactive window and output the picked groups. |
Module Contents¶
- spateo.tdr.widgets.pick.three_d_pick(model: pyvista.PolyData | pyvista.UnstructuredGrid | pyvista.MultiBlock, key: str = 'groups', picked_groups: str | list = None) pyvista.MultiBlock [source]¶
Pick the desired groups.
- spateo.tdr.widgets.pick._interactive_pick(plotter, model, picking_list: list | None = None, key: str = 'groups', label_size: int = 12, checkbox_size: int = 27, checkbox_color: 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: 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: pyvista.PolyData | None = None, other_pc: pyvista.PolyData | None = 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.