gausplat_loader/source/polygon/mod.rs
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
//! The module `polygon` can read and write PLY polygon files (`*.ply`).
//!
//! ## Examples
//!
//! **Note:** Click triangle to view content.
//!
//! <details>
//! <summary>
//! <strong><code>another-cube.greg-turk.ascii.ply</code>:</strong>
//! </summary>
//!
//! ```plaintext
#![doc = include_str!("../../../examples/data/polygon/another-cube.greg-turk.ascii.ply")]
//! ```
//!
//! </details>
//!
//! <details>
//! <summary>
//! <strong><code>single-triangle.ascii.ply</code>:</strong>
//! </summary>
//!
//! ```plaintext
//! ply
//! format ascii 1.0
//! element vertex 3
//! property float x
//! property float y
//! end_header
//! 0.0 1.0
//! 0.0 0
//! .0 -1.0
//! ```
//!
//! </details>
//!
//! <details>
//! <summary>
//! <strong><code>single-triangle.binary-le.ply</code>:</strong>
//! </summary>
//!
//! ```plaintext
//! ply
//! format binary_little_endian 1.0
//! element vertex 3
//! property float x
//! property float y
//! end_header
//! \x00\x00\x00\x00\x00\x00\x80\x3f
//! \x00\x00\x00\x00\x00\x00\x00\x00
//! \x00\x00\x00\x00\x00\x00\x80\xbf
//! ```
//!
//! </details>
//!
//! <!---->
//!
#![doc = include_str!("SUPPLEMENT.md")]
#![doc = include_str!("SYNTAX.md")]
#![doc = include_str!("LICENSE.md")]
pub mod header;
pub mod object;
pub mod payload;
pub use crate::{
error::Error,
function::{Decoder, DecoderWith, Encoder},
};
pub use header::{Format, Header};
pub use object::Object;
pub use payload::Payload;