pub struct CurveStation {
pub basis: NodeId,
pub station: Station,
pub frame: StationFrame,
}Expand description
A point and frame at a station along a basis curve.
Resolving it is curve evaluation, which a kernel does; see the module documentation for the conventions.
Fields§
§basis: NodeIdBasis curve, 2D or 3D.
station: StationDistance and offsets.
frame: StationFrameFrame the offsets are read in, and that the station presents.
Implementations§
Source§impl CurveStation
impl CurveStation
Sourcepub const fn new(basis: NodeId, station: Station) -> Self
pub const fn new(basis: NodeId, station: Station) -> Self
A station along basis in the basis curve’s section frame.
Sourcepub const fn with_seam_side(self, side: SeamSide) -> OrientedCurveStation
pub const fn with_seam_side(self, side: SeamSide) -> OrientedCurveStation
This station, unturned, reading side of a seam it lies on (#263).
A plain curve station always reads the outgoing piece; the side is
carried by an OrientedCurveStation whose orientation is the base
frame, so the node to push is
GeometryNode::OrientedCurveStation.
Trait Implementations§
impl BuiltInNode for CurveStation
Source§impl Clone for CurveStation
impl Clone for CurveStation
Source§fn clone(&self) -> CurveStation
fn clone(&self) -> CurveStation
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 CurveStation
Source§impl Debug for CurveStation
impl Debug for CurveStation
Source§impl<'de> Deserialize<'de> for CurveStation
impl<'de> Deserialize<'de> for CurveStation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<CurveStation> for OrientedCurveStation
impl From<CurveStation> for OrientedCurveStation
Source§fn from(station: CurveStation) -> Self
fn from(station: CurveStation) -> Self
The station in its base frame, reading the outgoing piece on a seam: what the plain station means.
Source§impl From<CurveStation> for GeometryNode
impl From<CurveStation> for GeometryNode
Source§fn from(value: CurveStation) -> Self
fn from(value: CurveStation) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CurveStation
impl PartialEq for CurveStation
Source§impl Serialize for CurveStation
impl Serialize for CurveStation
impl StructuralPartialEq for CurveStation
Auto Trait Implementations§
impl Freeze for CurveStation
impl RefUnwindSafe for CurveStation
impl Send for CurveStation
impl Sync for CurveStation
impl Unpin for CurveStation
impl UnsafeUnpin for CurveStation
impl UnwindSafe for CurveStation
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