Skip to main content

GeometryDecoder

Trait GeometryDecoder 

Source
pub trait GeometryDecoder {
    // Required methods
    fn point_cloud(&self) -> Option<&PointCloud>;
    fn mesh(&self) -> Option<&Mesh>;
    fn corner_table(&self) -> Option<&CornerTable>;
    fn get_geometry_type(&self) -> EncodedGeometryType;

    // Provided method
    fn get_attribute_encoding_method(&self, _att_id: i32) -> Option<i32> { ... }
}
Available on crate feature decoder only.
Expand description

Internal geometry context used by attribute decoders.

Required Methods§

Source

fn point_cloud(&self) -> Option<&PointCloud>

Returns point-cloud geometry when available.

Source

fn mesh(&self) -> Option<&Mesh>

Returns mesh geometry when available.

Source

fn corner_table(&self) -> Option<&CornerTable>

Returns mesh corner-table topology when available.

Source

fn get_geometry_type(&self) -> EncodedGeometryType

Returns the encoded geometry type.

Provided Methods§

Source

fn get_attribute_encoding_method(&self, _att_id: i32) -> Option<i32>

Returns the attribute encoding method for an attribute id, if known.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§