pub struct UserGeometry<T: UserGeometryImpl> {
pub handle: RTCGeometry,
/* private fields */
}Fields§
§handle: RTCGeometryImplementations§
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 handle(&self) -> &RTCGeometry
fn handle(&self) -> &RTCGeometry
Returns the handle of the geometry.
Auto Trait Implementations§
impl<T> Freeze for UserGeometry<T>
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