Struct embree4_rs::geometry::UserGeometry
source · pub struct UserGeometry<T: UserGeometryImpl> { /* private fields */ }
Implementations§
source§impl<T: UserGeometryImpl> UserGeometry<T>
impl<T: UserGeometryImpl> UserGeometry<T>
sourcepub fn try_new(device: &Device, data: &T) -> Result<Self>
pub fn try_new(device: &Device, data: &T) -> Result<Self>
Creates a new UserGeometry
object.
Arguments
device
- The Embree device.data
- The user-defined data associated with the geometry.bounds_fn
- The function pointer to the bounds function.intersect_fn
- The function pointer to the intersect function.occluded_fn
- The function pointer to the occluded function.
Returns
A Result
containing the UserGeometry
object if successful, or an anyhow::Error
if an error occurred.
Trait Implementations§
source§impl<T: UserGeometryImpl> Drop for UserGeometry<T>
impl<T: UserGeometryImpl> Drop for UserGeometry<T>
source§impl<T: UserGeometryImpl> Geometry for UserGeometry<T>
impl<T: UserGeometryImpl> Geometry for UserGeometry<T>
source§fn geometry(&self) -> RTCGeometry
fn geometry(&self) -> RTCGeometry
Returns the handle of the geometry.
Auto Trait Implementations§
impl<T> RefUnwindSafe for UserGeometry<T>where T: RefUnwindSafe,
impl<T> !Send for UserGeometry<T>
impl<T> !Sync for UserGeometry<T>
impl<T> Unpin for UserGeometry<T>where T: Unpin,
impl<T> UnwindSafe for UserGeometry<T>where T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more