Function re_components::data_cell_from_file_path
source · pub fn data_cell_from_file_path(
file_path: &Path
) -> Result<DataCell, FromFileError>
Expand description
Read the file at the given path.
Supported file extensions are:
glb
,gltf
,obj
: encoded meshes, leaving it to the viewer to decodejpg
,jpeg
: encoded JPEG, leaving it to the viewer to decode. Requires theimage
feature.png
and other image formats: decoded here. Requires theimage
feature.
All other extensions will return an error.