pub struct PointCloudDecoder { /* private fields */ }Available on crate feature
decoder only.Expand description
Decoder for Draco point cloud bitstreams.
PointCloudDecoder reads a point-cloud .drc bitstream and reconstructs a
PointCloud with its attributes and metadata. Both
KD-tree and sequential attribute encodings are supported (the actual decode
requires the point_cloud_decode feature).
A round trip is shown on the PointCloudEncoder type docs.
Implementations§
Source§impl PointCloudDecoder
impl PointCloudDecoder
Sourcepub fn decode(
&mut self,
in_buffer: &mut DecoderBuffer<'_>,
out_pc: &mut PointCloud,
) -> Status
Available on crate feature point_cloud_decode only.
pub fn decode( &mut self, in_buffer: &mut DecoderBuffer<'_>, out_pc: &mut PointCloud, ) -> Status
point_cloud_decode only.Decodes a Draco point cloud from in_buffer into out_pc.
§Errors
Returns an error if the header is invalid, the bitstream version is unsupported, or the encoded attributes are malformed.
Sourcepub fn decode_after_header(
&mut self,
version_major: u8,
version_minor: u8,
method: u8,
buffer: &mut DecoderBuffer<'_>,
out_pc: &mut PointCloud,
) -> Status
Available on crate feature point_cloud_decode only.
pub fn decode_after_header( &mut self, version_major: u8, version_minor: u8, method: u8, buffer: &mut DecoderBuffer<'_>, out_pc: &mut PointCloud, ) -> Status
point_cloud_decode only.Decode point cloud data when header + metadata have already been parsed. Used by MeshDecoder to delegate point cloud streams.
Sourcepub fn get_geometry_type(&self) -> EncodedGeometryType
pub fn get_geometry_type(&self) -> EncodedGeometryType
Returns the encoded geometry type handled by this decoder.
Trait Implementations§
Source§impl Default for PointCloudDecoder
impl Default for PointCloudDecoder
Source§impl GeometryDecoder for PointCloudDecoder
impl GeometryDecoder for PointCloudDecoder
Source§fn point_cloud(&self) -> Option<&PointCloud>
fn point_cloud(&self) -> Option<&PointCloud>
Returns point-cloud geometry when available.
Source§fn corner_table(&self) -> Option<&CornerTable>
fn corner_table(&self) -> Option<&CornerTable>
Returns mesh corner-table topology when available.
Source§fn get_geometry_type(&self) -> EncodedGeometryType
fn get_geometry_type(&self) -> EncodedGeometryType
Returns the encoded geometry type.
Auto Trait Implementations§
impl Freeze for PointCloudDecoder
impl RefUnwindSafe for PointCloudDecoder
impl Send for PointCloudDecoder
impl Sync for PointCloudDecoder
impl Unpin for PointCloudDecoder
impl UnsafeUnpin for PointCloudDecoder
impl UnwindSafe for PointCloudDecoder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more