jina.types.document.mixins.mesh module

class jina.types.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_blob(samples, as_chunks=False)[source]

Convert a 3d mesh-like uri into blob

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

convert_uri_to_point_cloud_blob(**kwargs)