MeshSamplingRecord#

class iskra.random.MeshSamplingRecord(*, point: Tensor, pdf: Tensor, bary: Tensor, prim_idx: Tensor)[SOURCE]#

Contains the result of a geometric sampling operation.

point#

A [n_samples, D] tensor of sample positions.

Type:

torch.Tensor

pdf#

A [n_samples, 1] tensor of sample pdfs.

Type:

torch.Tensor

bary#

A [n_samples, n_simplex_vertices] tensor of sample barycentric coordinates.

Type:

torch.Tensor

bary#

A [n_samples, 1] tensor of the index of the sampled geometric primitive.

Type:

torch.Tensor