[−][src]Trait pbrt::core::shape::Shape
Required Methods
fn object_bound(&self) -> Bounds3f
fn world_bound(&self) -> Bounds3f
fn intersect(&self, r: &Ray) -> Option<(SurfaceInteraction, Float)>
fn intersect_p(&self, r: &Ray) -> bool
fn get_reverse_orientation(&self) -> bool
fn get_transform_swaps_handedness(&self) -> bool
fn area(&self) -> Float
fn sample(&self, u: &Point2f, pdf: &mut Float) -> InteractionCommon
fn sample_with_ref_point(
&self,
iref: &InteractionCommon,
u: &Point2f,
pdf: &mut Float
) -> InteractionCommon
&self,
iref: &InteractionCommon,
u: &Point2f,
pdf: &mut Float
) -> InteractionCommon
fn pdf_with_ref_point(&self, iref: &dyn Interaction, wi: &Vector3f) -> Float
Provided Methods
fn pdf(&self, _iref: &InteractionCommon) -> Float
Implementors
impl Shape for Curve[src]
impl Shape for Curvefn object_bound(&self) -> Bounds3f[src]
fn object_bound(&self) -> Bounds3ffn world_bound(&self) -> Bounds3f[src]
fn world_bound(&self) -> Bounds3ffn intersect(&self, r: &Ray) -> Option<(SurfaceInteraction, Float)>[src]
fn intersect(&self, r: &Ray) -> Option<(SurfaceInteraction, Float)>fn intersect_p(&self, r: &Ray) -> bool[src]
fn intersect_p(&self, r: &Ray) -> boolfn get_reverse_orientation(&self) -> bool[src]
fn get_reverse_orientation(&self) -> boolfn get_transform_swaps_handedness(&self) -> bool[src]
fn get_transform_swaps_handedness(&self) -> boolfn area(&self) -> Float[src]
fn area(&self) -> Floatfn sample(&self, _u: &Point2f, _pdf: &mut Float) -> InteractionCommon[src]
fn sample(&self, _u: &Point2f, _pdf: &mut Float) -> InteractionCommonfn sample_with_ref_point(
&self,
iref: &InteractionCommon,
u: &Point2f,
pdf: &mut Float
) -> InteractionCommon[src]
fn sample_with_ref_point(
&self,
iref: &InteractionCommon,
u: &Point2f,
pdf: &mut Float
) -> InteractionCommonfn pdf_with_ref_point(&self, iref: &dyn Interaction, wi: &Vector3f) -> Float[src]
fn pdf_with_ref_point(&self, iref: &dyn Interaction, wi: &Vector3f) -> Floatfn pdf(&self, _iref: &InteractionCommon) -> Float[src]
fn pdf(&self, _iref: &InteractionCommon) -> Floatimpl Shape for Cylinder[src]
impl Shape for Cylinderfn object_bound(&self) -> Bounds3f[src]
fn object_bound(&self) -> Bounds3ffn world_bound(&self) -> Bounds3f[src]
fn world_bound(&self) -> Bounds3ffn intersect(&self, r: &Ray) -> Option<(SurfaceInteraction, Float)>[src]
fn intersect(&self, r: &Ray) -> Option<(SurfaceInteraction, Float)>fn intersect_p(&self, r: &Ray) -> bool[src]
fn intersect_p(&self, r: &Ray) -> boolfn get_reverse_orientation(&self) -> bool[src]
fn get_reverse_orientation(&self) -> boolfn get_transform_swaps_handedness(&self) -> bool[src]
fn get_transform_swaps_handedness(&self) -> boolfn area(&self) -> Float[src]
fn area(&self) -> Floatfn sample(&self, u: &Point2f, pdf: &mut Float) -> InteractionCommon[src]
fn sample(&self, u: &Point2f, pdf: &mut Float) -> InteractionCommonfn sample_with_ref_point(
&self,
iref: &InteractionCommon,
u: &Point2f,
pdf: &mut Float
) -> InteractionCommon[src]
fn sample_with_ref_point(
&self,
iref: &InteractionCommon,
u: &Point2f,
pdf: &mut Float
) -> InteractionCommonfn pdf_with_ref_point(&self, iref: &dyn Interaction, wi: &Vector3f) -> Float[src]
fn pdf_with_ref_point(&self, iref: &dyn Interaction, wi: &Vector3f) -> Floatfn pdf(&self, _iref: &InteractionCommon) -> Float[src]
fn pdf(&self, _iref: &InteractionCommon) -> Floatimpl Shape for Disk[src]
impl Shape for Diskfn object_bound(&self) -> Bounds3f[src]
fn object_bound(&self) -> Bounds3ffn world_bound(&self) -> Bounds3f[src]
fn world_bound(&self) -> Bounds3ffn intersect(&self, r: &Ray) -> Option<(SurfaceInteraction, Float)>[src]
fn intersect(&self, r: &Ray) -> Option<(SurfaceInteraction, Float)>fn intersect_p(&self, r: &Ray) -> bool[src]
fn intersect_p(&self, r: &Ray) -> boolfn get_reverse_orientation(&self) -> bool[src]
fn get_reverse_orientation(&self) -> boolfn get_transform_swaps_handedness(&self) -> bool[src]
fn get_transform_swaps_handedness(&self) -> boolfn area(&self) -> Float[src]
fn area(&self) -> Floatfn sample(&self, u: &Point2f, pdf: &mut Float) -> InteractionCommon[src]
fn sample(&self, u: &Point2f, pdf: &mut Float) -> InteractionCommonfn sample_with_ref_point(
&self,
iref: &InteractionCommon,
u: &Point2f,
pdf: &mut Float
) -> InteractionCommon[src]
fn sample_with_ref_point(
&self,
iref: &InteractionCommon,
u: &Point2f,
pdf: &mut Float
) -> InteractionCommonfn pdf_with_ref_point(&self, iref: &dyn Interaction, wi: &Vector3f) -> Float[src]
fn pdf_with_ref_point(&self, iref: &dyn Interaction, wi: &Vector3f) -> Floatfn pdf(&self, _iref: &InteractionCommon) -> Float[src]
fn pdf(&self, _iref: &InteractionCommon) -> Floatimpl Shape for Sphere[src]
impl Shape for Spherefn object_bound(&self) -> Bounds3f[src]
fn object_bound(&self) -> Bounds3ffn world_bound(&self) -> Bounds3f[src]
fn world_bound(&self) -> Bounds3ffn intersect(&self, r: &Ray) -> Option<(SurfaceInteraction, Float)>[src]
fn intersect(&self, r: &Ray) -> Option<(SurfaceInteraction, Float)>fn intersect_p(&self, r: &Ray) -> bool[src]
fn intersect_p(&self, r: &Ray) -> boolfn get_reverse_orientation(&self) -> bool[src]
fn get_reverse_orientation(&self) -> boolfn get_transform_swaps_handedness(&self) -> bool[src]
fn get_transform_swaps_handedness(&self) -> boolfn area(&self) -> Float[src]
fn area(&self) -> Floatfn sample(&self, u: &Point2f, pdf: &mut Float) -> InteractionCommon[src]
fn sample(&self, u: &Point2f, pdf: &mut Float) -> InteractionCommonfn sample_with_ref_point(
&self,
iref: &InteractionCommon,
u: &Point2f,
pdf: &mut Float
) -> InteractionCommon[src]
fn sample_with_ref_point(
&self,
iref: &InteractionCommon,
u: &Point2f,
pdf: &mut Float
) -> InteractionCommonfn pdf_with_ref_point(&self, iref: &dyn Interaction, wi: &Vector3f) -> Float[src]
fn pdf_with_ref_point(&self, iref: &dyn Interaction, wi: &Vector3f) -> Floatfn pdf(&self, _iref: &InteractionCommon) -> Float[src]
fn pdf(&self, _iref: &InteractionCommon) -> Floatimpl Shape for Triangle[src]
impl Shape for Trianglefn object_bound(&self) -> Bounds3f[src]
fn object_bound(&self) -> Bounds3ffn world_bound(&self) -> Bounds3f[src]
fn world_bound(&self) -> Bounds3ffn intersect(&self, ray: &Ray) -> Option<(SurfaceInteraction, Float)>[src]
fn intersect(&self, ray: &Ray) -> Option<(SurfaceInteraction, Float)>fn intersect_p(&self, ray: &Ray) -> bool[src]
fn intersect_p(&self, ray: &Ray) -> boolfn get_reverse_orientation(&self) -> bool[src]
fn get_reverse_orientation(&self) -> boolfn get_transform_swaps_handedness(&self) -> bool[src]
fn get_transform_swaps_handedness(&self) -> boolfn area(&self) -> Float[src]
fn area(&self) -> Floatfn sample(&self, u: &Point2f, pdf: &mut Float) -> InteractionCommon[src]
fn sample(&self, u: &Point2f, pdf: &mut Float) -> InteractionCommonfn sample_with_ref_point(
&self,
iref: &InteractionCommon,
u: &Point2f,
pdf: &mut Float
) -> InteractionCommon[src]
fn sample_with_ref_point(
&self,
iref: &InteractionCommon,
u: &Point2f,
pdf: &mut Float
) -> InteractionCommonfn pdf_with_ref_point(&self, iref: &dyn Interaction, wi: &Vector3f) -> Float[src]
fn pdf_with_ref_point(&self, iref: &dyn Interaction, wi: &Vector3f) -> Floatfn pdf(&self, _iref: &InteractionCommon) -> Float[src]
fn pdf(&self, _iref: &InteractionCommon) -> Float