draco-rs 0.1.3

Rust-bindings to the c++ draco library, for compressing and decompressing 3D geometric meshes and point clouds.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// use crate::prelude::ffi;

// // Class for storing point specific data about each attribute. In general,
// // multiple points stored in a point cloud can share the same attribute value
// // and this class provides the necessary mapping between point ids and attribute
// // value ids.
// pub struct NonOwningPointAttribute {
//     pub(crate) ptr: *const ffi::draco::PointAttribute,
// }

// impl NonOwningPointAttribute {
//     // # Safety
//     // This function is unsafe because it dereferences the raw pointer.
//     pub unsafe fn size(&self) -> usize {
//         (*self.ptr).size()
//     }
// }