[][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,
}

Fields

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

Implementations

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(
    &self,
    ray: &mut Ray,
    sampler: &mut Sampler,
    isect: &mut SurfaceInteraction<'_>,
    tr: &mut Spectrum
) -> bool
[src]

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
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.