docarray.document.mixins.mesh module#

class docarray.document.mixins.mesh.MeshDataMixin[source]#

Bases: object

Provide helper functions for Document to support 3D mesh data and point cloud.

load_uri_to_point_cloud_tensor(samples, as_chunks=False)[source]#

Convert a 3d mesh-like uri into tensor

Parameters
  • samples (int) – number of points to sample from the mesh

  • as_chunks (bool) – when multiple geometry stored in one mesh file, then store each geometry into different chunks

Return type

T

Returns

itself after processed