pub enum Primitive {
Geometric(Box<GeometricPrimitive>),
Transformed(Box<TransformedPrimitive>),
BVH(Box<BVHAccel>),
KdTree(Box<KdTreeAccel>),
}
Variants
Geometric(Box<GeometricPrimitive>)
Transformed(Box<TransformedPrimitive>)
BVH(Box<BVHAccel>)
KdTree(Box<KdTreeAccel>)
Implementations
sourceimpl Primitive
impl Primitive
pub fn world_bound(&self) -> Bounds3f
pub fn intersect(&self, ray: &Ray, isect: &mut SurfaceInteraction<'_>) -> bool
pub fn intersect_p(&self, ray: &Ray) -> bool
pub fn get_area_light(&self) -> Option<Arc<Light>>
pub fn get_material(&self) -> Option<Arc<Material>>
pub fn compute_scattering_functions(
&self,
isect: &mut SurfaceInteraction<'_>,
mode: TransportMode,
allow_multiple_lobes: bool
)
Auto Trait Implementations
impl !RefUnwindSafe for Primitive
impl Send for Primitive
impl Sync for Primitive
impl Unpin for Primitive
impl !UnwindSafe for Primitive
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more