spateo.tdr.widgets.pick ======================= .. py:module:: spateo.tdr.widgets.pick Functions --------- .. autoapisummary:: spateo.tdr.widgets.pick.three_d_pick spateo.tdr.widgets.pick._interactive_pick spateo.tdr.widgets.pick.interactive_pick spateo.tdr.widgets.pick.overlap_pc_pick spateo.tdr.widgets.pick.overlap_mesh_pick spateo.tdr.widgets.pick.overlap_pick Module Contents --------------- .. py:function:: three_d_pick(model: Union[pyvista.PolyData, pyvista.UnstructuredGrid, pyvista.MultiBlock], key: str = 'groups', picked_groups: Union[str, list] = None) -> pyvista.MultiBlock Pick the desired groups. .. py:function:: _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)) Add a checkbox button widget to the scene. .. py:function:: interactive_pick(model: Union[pyvista.PolyData, pyvista.UnstructuredGrid, pyvista.MultiBlock], key: str = 'groups', checkbox_size: int = 27, label_size: int = 12) -> pyvista.MultiBlock Add a checkbox button widget to pick the desired groups through the interactive window and output the picked groups. :param model: Reconstructed 3D model. :param key: The key under which are the groups. :param checkbox_size: The size of the button in number of pixels. :param label_size: The font size of the checkbox labels. :returns: A MultiBlock that contains all models you picked. .. py:function:: overlap_pc_pick(pc: pyvista.PolyData, mesh: pyvista.PolyData) -> [pyvista.PolyData, pyvista.PolyData] Pick the point cloud inside the mesh model and point cloud outside the mesh model. :param pc: Reconstructed 3D point cloud model corresponding to mesh. :param mesh: Reconstructed 3D mesh model. :returns: Point cloud inside the mesh model. outside_pc: Point cloud outside the mesh model. :rtype: inside_pc .. py:function:: overlap_mesh_pick(mesh1: pyvista.PolyData, mesh2: pyvista.PolyData) -> pyvista.PolyData Pick the intersection between two mesh models. :param mesh1: Reconstructed 3D mesh model. :param mesh2: Reconstructed 3D mesh model. :returns: The intersection mesh model. :rtype: select_mesh .. py:function:: overlap_pick(main_mesh: pyvista.PolyData, other_mesh: pyvista.PolyData, main_pc: Optional[pyvista.PolyData] = None, other_pc: Optional[pyvista.PolyData] = None) Add a checkbox button widget to pick the desired groups through the interactive window and output the picked groups. :param main_mesh: Reconstructed 3D mesh model. :param other_mesh: Reconstructed 3D mesh model. :param main_pc: Reconstructed 3D point cloud model corresponding to main_mesh. :param other_pc: Reconstructed 3D point cloud model corresponding to other_mesh. :returns: A MultiBlock that contains all models you picked.