pub struct Network {
pub faces: Vec<Shape>,
pub shell: Shape,
pub edges: Vec<Shape>,
pub surfaces: Vec<BSplineSurface>,
pub worst_tangent: f64,
pub worst_gap: f64,
pub per_patch: Vec<PatchFit>,
pub corners: Vec<IrregularCorner>,
pub outside: usize,
pub ended: Ended,
}Expand description
What fit_network produced.
Fields§
§faces: Vec<Shape>A face per patch, in the patches’ order, sharing an edge per shared curve.
shell: ShapeThe faces as one shell.
edges: Vec<Shape>An edge per curve, in the curves’ order.
surfaces: Vec<BSplineSurface>Each patch’s surface, over the unit square.
worst_tangent: f64The widest angle, in radians, between the two patches’ normals across a curve between two patches that is not a crease, read at both ends and the Gauss nodes of every span (an end at a missing side’s point left out, where a normal is not defined), and at the irregular corners.
worst_gap: f64The widest distance between a curve’s edge and the boundary of a patch it bounds, read at the same nodes.
per_patch: Vec<PatchFit>How each patch fits its points.
corners: Vec<IrregularCorner>The corners inside the network where other than four patches meet, no curve there a crease, and their angles.
outside: usizeHow many points lie past the network’s border, nearest a side no other patch shares, and were left out.
ended: EndedWhy refinement stopped; never Ended::Fixed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Network
impl RefUnwindSafe for Network
impl Send for Network
impl Sync for Network
impl Unpin for Network
impl UnsafeUnpin for Network
impl UnwindSafe for Network
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.