Skip to main content

MeshView

Trait MeshView 

Source
pub trait MeshView {
    // Required methods
    fn positions(&self) -> &[Point3] ⓘ;
    fn indices(&self) -> &[u32];
}
Expand description

Read-only triangle mesh view.

A foreign kernel can implement this for its native mesh and call algorithms without first adopting Axiolid’s owned container.

Required Methods§

Source

fn positions(&self) -> &[Point3] ⓘ

Position buffer.

Source

fn indices(&self) -> &[u32]

Triangle corner index buffer.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§