if name in S_POINTS:
kwargs["points"] = self.xyz
valid_args = crosscheck_kwargs_function(kwargs, S_POINTS[name])
return S_POINTS[name](**valid_args)
elif name in S_MESH:
kwargs["v1"], kwargs["v2"], kwargs["v3"] = self.get_mesh_vertices()
valid_args = crosscheck_kwargs_function(kwargs, S_MESH[name])
return S_MESH[name](**valid_args)
elif name in S_VOXELGRID:
kwargs["voxelgrid"] = self.voxelgrids[kwargs["voxelgrid"]]
valid_args = crosscheck_kwargs_function(kwargs, S_VOXELGRID[name])
return S_VOXELGRID[name](**valid_args)
else:
raise ValueError("Unsupported sample mode; supported modes are: {}".format(ALL_SAMPLING))
def get_neighbors(self, k=None, r=None, kdtree=None):
For each point finds the indices that compose it"s neighbourhood.