torch_geometric.transforms.SamplePoints

class SamplePoints(num: int, remove_faces: bool = True, include_normals: bool = False)[source]

Bases: BaseTransform

Uniformly samples a fixed number of points on the mesh faces according to their face area (functional name: sample_points).

Parameters:
  • num (int) – The number of points to sample.

  • remove_faces (bool, optional) – If set to False, the face tensor will not be removed. (default: True)

  • include_normals (bool, optional) – If set to True, then compute normals for each sampled point. (default: False)