Trait Geometry

Source
pub trait Geometry {
    // Required method
    fn handle(&self) -> &RTCGeometry;
}
Expand description

A trait implemented by all geometry types. If you want to implement your own geometry type, you must implement this trait.

Make sure to release the geometry handle when the geometry is dropped. See rtcReleaseGeometry.

Required Methods§

Source

fn handle(&self) -> &RTCGeometry

Returns the handle of the geometry.

Implementors§