-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(engine): introduce GLTF module and refactor related components (#…
…654)
- Loading branch information
Showing
20 changed files
with
194 additions
and
293 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
mod gltf; | ||
mod material; | ||
pub(crate) mod metadata; | ||
pub(crate) mod sink; | ||
mod slice; | ||
mod tiling; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
mod helper; | ||
|
||
fn main() { | ||
helper::execute("data-convert/08-ubld/workflow.yml"); | ||
helper::execute("data-convert/07-brid-tun-cons/workflow.yml"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
[package] | ||
description = "Re:Earth Flow GLTF library" | ||
name = "reearth-flow-gltf" | ||
|
||
authors.workspace = true | ||
edition.workspace = true | ||
homepage.workspace = true | ||
license.workspace = true | ||
repository.workspace = true | ||
rust-version.workspace = true | ||
version.workspace = true | ||
|
||
[dependencies] | ||
reearth-flow-common.workspace = true | ||
reearth-flow-eval-expr.workspace = true | ||
reearth-flow-geometry.workspace = true | ||
reearth-flow-runtime.workspace = true | ||
reearth-flow-storage.workspace = true | ||
reearth-flow-types.workspace = true | ||
|
||
nusamai-citygml.workspace = true | ||
nusamai-gltf.workspace = true | ||
|
||
ahash.workspace = true | ||
byteorder.workspace = true | ||
chrono.workspace = true | ||
indexmap.workspace = true | ||
itertools.workspace = true | ||
once_cell.workspace = true | ||
regex.workspace = true | ||
schemars.workspace = true | ||
serde.workspace = true | ||
serde_json.workspace = true | ||
tempfile.workspace = true | ||
thiserror.workspace = true | ||
tokio.workspace = true | ||
tracing.workspace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
use thiserror::Error; | ||
|
||
#[derive(Error, Debug)] | ||
pub enum Error { | ||
#[error("Gltf Metadata error: {0}")] | ||
Metadata(String), | ||
#[error("Gltf writer error: {0}")] | ||
Writer(String), | ||
} | ||
|
||
pub type Result<T, E = Error> = std::result::Result<T, E>; | ||
|
||
impl Error { | ||
pub fn metadata<T: ToString>(message: T) -> Self { | ||
Self::Metadata(message.to_string()) | ||
} | ||
|
||
pub fn writer<T: ToString>(message: T) -> Self { | ||
Self::Writer(message.to_string()) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
pub(crate) mod errors; | ||
pub(crate) mod metadata; | ||
pub(crate) mod utils; | ||
pub(crate) mod writer; | ||
|
||
pub use metadata::*; | ||
pub use utils::*; | ||
pub use writer::*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.