pub struct Surface<'m> { /* private fields */ }Expand description
The geometry under a Face. Call Surface::kind to dispatch.
Implementations§
Source§impl<'m> Surface<'m>
impl<'m> Surface<'m>
Sourcepub fn key(&self) -> EntityKey
pub fn key(&self) -> EntityKey
This surface’s global identity (a Copy key for maps / deduplication; a
surface shared by several faces yields the same key()).
Sourcepub fn to_nurbs(&self) -> Option<NurbsSurface>
pub fn to_nurbs(&self) -> Option<NurbsSurface>
The rational-B-spline (NurbsSurface)
form of this surface, if the kind is supported. Only closed analytic
surfaces convert as-is — a full sphere or torus. Open surfaces (plane,
cylinder, cone) are unbounded and need a face’s bounds, so they return
None here — use Face::to_nurbs instead, which has the bounds.
pub fn kind(&self) -> SurfaceKind<'m>
Trait Implementations§
Auto Trait Implementations§
impl<'m> Freeze for Surface<'m>
impl<'m> RefUnwindSafe for Surface<'m>
impl<'m> Send for Surface<'m>
impl<'m> Sync for Surface<'m>
impl<'m> Unpin for Surface<'m>
impl<'m> UnsafeUnpin for Surface<'m>
impl<'m> UnwindSafe for Surface<'m>
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