pub struct LimitStencils {
pub position: StencilTable,
pub tangent1: StencilTable,
pub tangent2: StencilTable,
}Expand description
Limit-surface stencils over a refined level’s vertices.
All three tables read the refined level’s vertex data (or, when
produced by RefinementResult::compose_limit_stencils, the
original control points) and write one value per refined vertex.
Tangents are unnormalized; tangent1 x tangent2 is the (winding
oriented) surface normal and the tangent magnitudes match
OpenSubdiv’s limit-mask scales.
Fields§
§position: StencilTableRefined-vertex -> limit position.
tangent1: StencilTableRefined-vertex -> limit tangent 1 (unnormalized).
tangent2: StencilTableRefined-vertex -> limit tangent 2 (unnormalized).
Trait Implementations§
Source§impl Clone for LimitStencils
impl Clone for LimitStencils
Source§fn clone(&self) -> LimitStencils
fn clone(&self) -> LimitStencils
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LimitStencils
impl Debug for LimitStencils
Source§impl PartialEq for LimitStencils
impl PartialEq for LimitStencils
Source§fn eq(&self, other: &LimitStencils) -> bool
fn eq(&self, other: &LimitStencils) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LimitStencils
Auto Trait Implementations§
impl Freeze for LimitStencils
impl RefUnwindSafe for LimitStencils
impl Send for LimitStencils
impl Sync for LimitStencils
impl Unpin for LimitStencils
impl UnsafeUnpin for LimitStencils
impl UnwindSafe for LimitStencils
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more