open3d.io.rpc.set_mesh_data#
- open3d.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 (int, optional, default=0) – The time associated with this data.
layer (str, optional, default='') – The layer associated with this data.
vertices (open3d.core.Tensor, optional, default=0-element Tensor Tensor[shape={0}, stride={1}, Float32) – Tensor defining the vertices. ()
vertex_attributes (dict[str, open3d.core.Tensor], optional, default={}) – dict of Tensors with vertex attributes.
faces (open3d.core.Tensor, optional, default=0-element Tensor Tensor[shape={0}, stride={1}, Int32) – Tensor defining the faces with vertex indices. ()
face_attributes (dict[str, open3d.core.Tensor], optional, default={}) – dict of Tensors with face attributes.
lines (open3d.core.Tensor, optional, default=0-element Tensor Tensor[shape={0}, stride={1}, Int32) – Tensor defining lines with vertex indices. ()
line_attributes (dict[str, open3d.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 (dict[str, float], optional, default={}) – dict of material scalar attributes for geometry drawing (e.g.
point_size
,line_width
orbase_reflectance
).material_vector_attributes (dict[str, Annotated[list[float], FixedSize(4)]], optional, default={}) – dict of material Vector4f attributes for geometry drawing (e.g.
base_color
orabsorption_color
)texture_maps (dict[str, open3d.t.geometry.Image], optional, default={}) – dict of Images with textures.
o3d_type (str, optional, default='') – The type of the geometry. This is one of
PointCloud
,LineSet
,TriangleMesh
. This argument should be specified for partial data that has no primary key data, e.g., a triangle mesh without vertices but with other attribute tensors.connection (open3d.io.rpc._ConnectionBase, optional, default=None) – A Connection object. Use None to automatically create the connection.
- Returns:
bool