Exemplo n.º 1
0
 def forward(ctx, radius, nsample, xyz, new_xyz):
     """
     :param ctx:
     :param radius: float, radius of the balls
     :param nsample: int, maximum number of features in the balls
     :param xyz: (B, N, 3) xyz coordinates of the features
     :param new_xyz: (B, npoint, 3) centers of the ball query
     :return:
         idx: (B, npoint, nsample) tensor with the indicies of the features that form the query balls
     """
     return _ext.ball_query(new_xyz, xyz, radius, nsample)
Exemplo n.º 2
0
    def forward(ctx, radius, nsample, xyz, new_xyz):
        # type: (Any, float, int, torch.Tensor, torch.Tensor) -> torch.Tensor
        r"""

        Parameters
        ----------
        radius : float
            radius of the balls
        nsample : int
            maximum number of features in the balls
        xyz : torch.Tensor
            (B, N, 3) xyz coordinates of the features
        new_xyz : torch.Tensor
            (B, npoint, 3) centers of the ball query

        Returns
        -------
        torch.Tensor
            (B, npoint, nsample) tensor with the indicies of the features that form the query balls
        """
        return _ext.ball_query(new_xyz, xyz, radius, nsample)