pub struct OffsetSample {
pub source: Vec3,
pub normal: Vec3,
pub point: Vec3,
}Expand description
One evaluation of the offset: the source point, the unit normal the offset rides, and the offset point itself.
The normal is also the offset surface’s own normal wherever the offset is
regular — it flips only past the evolute, which is what
thicken::ensure_offsets_regular (the kernel’s only curvature gate) exists
to refuse. This struct deliberately carries no other derivative data: the
five consumers were audited and not one of them uses S_u/S_v for
anything but the normal, and the blend march’s Jacobian is finite-differenced
on the residual rather than assembled from partials.
Fields§
§source: Vec3S(u, v) on the source carrier.
normal: Vec3The unit normal, in the requested orientation.
point: Vec3source + distance · normal.
Trait Implementations§
Source§impl Clone for OffsetSample
impl Clone for OffsetSample
Source§fn clone(&self) -> OffsetSample
fn clone(&self) -> OffsetSample
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 moreimpl Copy for OffsetSample
Auto Trait Implementations§
impl Freeze for OffsetSample
impl RefUnwindSafe for OffsetSample
impl Send for OffsetSample
impl Sync for OffsetSample
impl Unpin for OffsetSample
impl UnsafeUnpin for OffsetSample
impl UnwindSafe for OffsetSample
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