pub trait Geometry {
    // Required method
    fn geometry(&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 geometry(&self) -> RTCGeometry

Returns the handle of the geometry.

Implementors§