cloudViewer.io.rpc.set_mesh_data#
- cloudViewer.io.rpc.set_mesh_data(path='', time=0, layer='', vertices=0-element Tensor Tensor[shape={0}, stride={1}, Float32, vertex_attributes={}, faces=0-element Tensor Tensor[shape={0}, stride={1}, Int32, face_attributes={}, lines=0-element Tensor Tensor[shape={0}, stride={1}, Int32, line_attributes={}, material='', material_scalar_attributes={}, material_vector_attributes, texture_maps={}, o3d_type='', connection=None)#
Sends a set_mesh_data message.
- Parameters:
path (str, optional, default='') – A path descriptor, e.g., ‘mygroup/points’.
time (SupportsInt, optional, default=0) – The time associated with this data.
layer (str, optional, default='') – The layer associated with this data.
vertices (cloudViewer.core.Tensor, optional, default=0-element Tensor Tensor[shape={0}, stride={1}, Float32) – Tensor defining the vertices. ()
vertex_attributes (collections.abc.Mapping[str, cloudViewer.core.Tensor], optional, default={}) – dict of Tensors with vertex attributes.
faces (cloudViewer.core.Tensor, optional, default=0-element Tensor Tensor[shape={0}, stride={1}, Int32) – Tensor defining the faces with vertex indices. ()
face_attributes (collections.abc.Mapping[str, cloudViewer.core.Tensor], optional, default={}) – dict of Tensors with face attributes.
lines (cloudViewer.core.Tensor, optional, default=0-element Tensor Tensor[shape={0}, stride={1}, Int32) – Tensor defining lines with vertex indices. ()
line_attributes (collections.abc.Mapping[str, cloudViewer.core.Tensor], optional, default={}) – dict of Tensors with line attributes.
material (str, optional, default='') – Basic Material for geometry drawing. Must be non-empty if any material attributes or texture maps are provided.
material_scalar_attributes (collections.abc.Mapping[str, SupportsFloat], optional, default={}) – dict of material scalar attributes for geometry drawing (e.g.
point_size,line_widthorbase_reflectance).material_vector_attributes (collections.abc.Mapping[str, Annotated[collections.abc.Sequence[SupportsFloat],) – dict of material Vector4f attributes for geometry drawing (e.g.
base_colororabsorption_color)texture_maps (collections.abc.Mapping[str, cloudViewer.t.geometry.Image], optional, default={}) – dict of Images with textures.
o3d_type – The type of the geometry. This is one of
- Returns:
bool