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 the region-scoped
scan in offset/regularity.rs (the kernel’s only curvature gate, shared by
thicken’s sheet refusal and offset-shell’s carrier-collapse lane) exists
to refuse, over the trim rather than over the whole carrier. 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.