这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/io/loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ impl AssetLoader for Gaussian3dLoader {

#[cfg(not(feature = "io_ply"))]
{
Err(std::io::Error::new(ErrorKind::Other, "ply support not enabled, enable with io_ply feature"))
Err(std::io::Error::other("ply support not enabled, enable with io_ply feature"))
}
},
Some(ext) if ext == "gcloud" => {
let cloud = PlanarGaussian3d::decode(bytes.as_slice());

Ok(cloud)
},
_ => Err(std::io::Error::new(ErrorKind::Other, "only .ply and .gcloud supported")),
_ => Err(std::io::Error::other("only .ply and .gcloud supported")),
}
}

Expand Down Expand Up @@ -95,13 +95,13 @@ impl AssetLoader for Gaussian4dLoader {

#[cfg(not(feature = "io_ply"))]
{
Err(std::io::Error::new(ErrorKind::Other, "ply4d support not enabled, enable with io_ply feature"))
Err(std::io::Error::other("ply4d support not enabled, enable with io_ply feature"))
}
},
Some(ext) if ext == "gc4d" => {
Ok(PlanarGaussian4d::decode(bytes.as_slice()))
},
_ => Err(std::io::Error::new(ErrorKind::Other, "only .ply4d and .gc4d supported")),
_ => Err(std::io::Error::other("only .ply4d and .gc4d supported")),
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/io/scene.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ impl AssetLoader for GaussianSceneLoader {

Ok(scene)
},
_ => Err(std::io::Error::new(ErrorKind::Other, "only .json supported")),
_ => Err(std::io::Error::other("only .json supported")),
}
}

Expand Down