#[non_exhaustive]pub struct InstanceAtStation {
pub source: NodeId,
pub station: OrientedCurveStation,
}Expand description
A node reused in the frame of an OrientedCurveStation (#264): the
station-framed form of Instance.
The source’s local x, y, z and origin are placed on the
station’s oriented tangent, left lateral, up and point (see the
module documentation); the
frame is resolved at evaluation, reading the side of a seam the station
names. A placed curve is a 3D curve, a placed solid or surface keeps
its family. Built with InstanceAtStation::new, so fields can be
added without breaking callers.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.source: NodeIdThe reused node, in its own local coordinates.
station: OrientedCurveStationThe station whose oriented frame places it.
Implementations§
Source§impl InstanceAtStation
impl InstanceAtStation
Sourcepub const fn new(source: NodeId, station: OrientedCurveStation) -> Self
pub const fn new(source: NodeId, station: OrientedCurveStation) -> Self
source placed in the frame of station.
Trait Implementations§
impl BuiltInNode for InstanceAtStation
Source§impl Clone for InstanceAtStation
impl Clone for InstanceAtStation
Source§fn clone(&self) -> InstanceAtStation
fn clone(&self) -> InstanceAtStation
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 InstanceAtStation
Source§impl Debug for InstanceAtStation
impl Debug for InstanceAtStation
Source§impl<'de> Deserialize<'de> for InstanceAtStation
impl<'de> Deserialize<'de> for InstanceAtStation
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<InstanceAtStation> for GeometryNode
impl From<InstanceAtStation> for GeometryNode
Source§fn from(value: InstanceAtStation) -> Self
fn from(value: InstanceAtStation) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InstanceAtStation
impl PartialEq for InstanceAtStation
Source§impl Serialize for InstanceAtStation
impl Serialize for InstanceAtStation
impl StructuralPartialEq for InstanceAtStation
Auto Trait Implementations§
impl Freeze for InstanceAtStation
impl RefUnwindSafe for InstanceAtStation
impl Send for InstanceAtStation
impl Sync for InstanceAtStation
impl Unpin for InstanceAtStation
impl UnsafeUnpin for InstanceAtStation
impl UnwindSafe for InstanceAtStation
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