irtk.connectors.nvdiffrast_connector.xfm_points

irtk.connectors.nvdiffrast_connector.xfm_points(points, matrix)

Transform points.

Parameters:
  • points – Tensor containing 3D points with shape [minibatch_size, num_vertices, 3] or [1, num_vertices, 3]

  • matrix – A 4x4 transform matrix with shape [minibatch_size, 4, 4]

Returns:

Transformed points in homogeneous 4D with shape [minibatch_size, num_vertices, 4].