[][src]Struct pbrt::core::scene::Scene

pub struct Scene {
    pub lights: Vec<Arc<Light>>,
    pub infinite_lights: Vec<Arc<Light>>,
    pub aggregate: Arc<Primitive>,
    pub world_bound: Bounds3f,


lights: Vec<Arc<Light>>infinite_lights: Vec<Arc<Light>>aggregate: Arc<Primitive>world_bound: Bounds3f


impl Scene[src]

pub fn new(aggregate: Arc<Primitive>, lights: Vec<Arc<Light>>) -> Self[src]

pub fn world_bound(&self) -> &Bounds3f[src]

pub fn intersect(&self, ray: &Ray, isect: &mut SurfaceInteraction<'_>) -> bool[src]

pub fn intersect_p(&self, ray: &mut Ray) -> bool[src]

pub fn intersect_tr(
    ray: &mut Ray,
    sampler: &mut Sampler,
    isect: &mut SurfaceInteraction<'_>,
    tr: &mut Spectrum
) -> bool

Trait Implementations

impl Clone for Scene[src]

Auto Trait Implementations

impl !RefUnwindSafe for Scene

impl Send for Scene

impl Sync for Scene

impl Unpin for Scene

impl !UnwindSafe for Scene

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.