diff --git a/Cargo.toml b/Cargo.toml index 6fd60cd..875b95f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "opd-parser" description = "Parser for the OPD point cloud animation format" -version = "0.5.0" +version = "0.6.0" edition = "2021" authors = [ "Zhixing Zhang " diff --git a/src/lib.rs b/src/lib.rs index 6825ab5..abc049f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -109,6 +109,11 @@ pub struct OpdHeaderDirective { #[serde(rename = "lastFrameCorrected")] pub last_frame_corrected: Option, + + /// Set when each centroid record carries per-particle damage columns + /// (`x50`, `undulation`, `xmax`, `severity`) after the optional volume column. + #[serde(rename = "hasDamage", skip_serializing_if = "Option::is_none")] + pub has_damage: Option, } #[derive(Deserialize, Debug, Serialize)]