Skip to main content

FaceVectorArea

Struct FaceVectorArea 

Source
pub struct FaceVectorArea {
    pub shell: u64,
    pub face: u64,
    pub face_name: Option<String>,
    pub trim: Vec3,
    pub edge: Vec3,
    pub departure: Vec3,
    pub boundary_length: f64,
    pub bar: f64,
    pub closure_gap: f64,
}
Expand description

One face’s vector area ∫ n dA, as its TRIMS claim it and as its EDGES claim it, and the difference between the two.

Both are the same boundary integral (1/2) ∮ (r − R) × dr about the shell’s own reference R (see ShellVectorArea::reference), over the same loops in the same order; only the curve differs. The trim walks the pcurve mapped through this face’s surface — the boundary the mass integrals actually integrate over — and the edge walks the 3D edge curve the coedge names, which is the SAME curve the face across that edge walks.

Fields§

§shell: u64§face: u64§face_name: Option<String>§trim: Vec3

(1/2) ∮ (r − R) × dr over the face’s TRIMS, each coedge sampled in its own parameter direction (a pcurve is parameterized in its coedge’s traversal direction, so the loop is walked by sampling each pcurve forwards, never by reversing a reverse coedge’s sweep).

§edge: Vec3

The same integral over the 3D EDGE curves, each edge traversed in its coedge’s direction — forwards over [t0, t1] for a forward coedge, backwards for a reverse one.

§departure: Vec3

trim − edge: what THIS face’s trims add to the shell’s residual. Every edge term cancels across the shell (each edge is walked once each way), so the shell’s residual is exactly the sum of these.

§boundary_length: f64

The face’s own boundary arc length, taken on the edge curves.

§bar: f64

PCURVE_REFINEMENT_TOLERANCE * boundary_length — what this face’s departure can be while every one of its trims lies within the fit floor of the edge it claims. See ShellVectorArea::bar for the derivation; this is the same bound applied to one loop.

It does not cover a face whose closure_gap is over the floor. The derivation takes one integration by parts over a CLOSED loop; a loop that does not close carries a boundary term the bound never modelled, and the sliver its chords span is real area that this face’s trims genuinely enclose. Read closure_gap first.

§closure_gap: f64

How far this face’s own trims fail to MEET each other: the summed 3D distance from where one coedge’s trim ends to where the next one starts, over this face’s loops, including the chord home.

A different defect from the departure, and the one that is easy to misread as it. Two trims arriving at one vertex are fitted independently, each refined to PCURVE_REFINEMENT_TOLERANCE, so they can miss each other by twice it — about 2e-7 — and anything at that scale is the fit floor rather than a defect. Past it the loop is not closed in the record, and then this face’s departure is partly the area of the sliver its closing chords span rather than any trim lying off an edge.

Reported, not verdicted: a bar on it would be a new tolerance, and the slice that owns a loop’s closure is the one that opens it. On the notched cap (2026-09-16) the top cap E5:S4:PROFILE:L2_END carries a 4.095e-7 net step in uv while every other loop on that shell closes to 1e-12 or better, and it is the fillet that opens it — the same document’s pre-fillet body closes exactly.

Implementations§

Source§

impl FaceVectorArea

Source

pub fn residual(&self) -> f64

|departure|.

Source

pub fn is_over_bar(&self) -> bool

Does this face’s trim lie further from its own edges than a fit at the refinement floor can account for?

Trait Implementations§

Source§

impl Clone for FaceVectorArea

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for FaceVectorArea

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Serialize for FaceVectorArea

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<S, T> Upcast<T> for S
where T: UpcastFrom<S> + ?Sized, S: ?Sized,

Source§

fn upcast(&self) -> &T
where Self: ErasableGeneric, T: Sized + ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider ref type within the Wasm bindgen generics type system. Read more
Source§

fn upcast_into(self) -> T
where Self: Sized + ErasableGeneric, T: Sized + ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider type within the Wasm bindgen generics type system. Read more