embree4_rs/geometry/
mod.rs

1mod tri_mesh;
2mod user;
3
4pub use tri_mesh::*;
5pub use user::*;
6
7/// A trait implemented by all geometry types.
8/// If you want to implement your own geometry type, you must implement this trait.
9///
10/// Make sure to release the geometry handle when the geometry is dropped.
11/// See [rtcReleaseGeometry](https://github.com/embree/embree/blob/master/doc/src/api/rtcReleaseGeometry.md).
12pub trait Geometry {
13    /// Returns the handle of the geometry.
14    fn handle(&self) -> &embree4_sys::RTCGeometry;
15}