[][src]Struct pbrt::shapes::triangle::Triangle

pub struct Triangle {
    pub id: u32,
    // some fields omitted


id: u32


impl Triangle[src]

pub fn new(mesh: Arc<TriangleMesh>, tri_number: u32) -> Self[src]

pub fn get_uvs(&self) -> [Point2f; 3][src]

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

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

pub fn intersect(
    ray: &Ray,
    t_hit: &mut Float,
    isect: &mut SurfaceInteraction<'_>
) -> bool

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

pub fn get_reverse_orientation(&self) -> bool[src]

pub fn get_transform_swaps_handedness(&self) -> bool[src]

pub fn get_object_to_world(&self) -> Transform[src]

pub fn area(&self) -> Float[src]

pub fn sample(&self, u: Point2f, pdf: &mut Float) -> InteractionCommon[src]

pub fn sample_with_ref_point(
    iref: &InteractionCommon,
    u: Point2f,
    pdf: &mut Float
) -> InteractionCommon

pub fn pdf_with_ref_point(&self, iref: &dyn Interaction, wi: &Vector3f) -> Float[src]

Trait Implementations

impl Clone for Triangle[src]

Auto Trait Implementations

impl !RefUnwindSafe for Triangle

impl Send for Triangle

impl Sync for Triangle

impl Unpin for Triangle

impl !UnwindSafe for Triangle

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.