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 decode
  • jpg, jpeg: encoded JPEG, leaving it to the viewer to decode. Requires the image feature.
  • png and other image formats: decoded here. Requires the image feature.

All other extensions will return an error.