pub struct Beam {
pub v1: u32,
pub v2: u32,
pub r1: f32,
pub r2: f32,
pub p1: Option<u32>,
pub p2: Option<u32>,
pub cap_mode: CapMode,
}Expand description
A cylindrical beam connecting two vertices.
Beams are defined by two vertex indices and a radius at each end, allowing for tapered beams. They can have different materials at each endpoint via property indices.
Fields§
§v1: u32Index of the first vertex.
v2: u32Index of the second vertex.
r1: f32Radius at the first vertex.
r2: f32Radius at the second vertex.
p1: Option<u32>Property index at the first vertex (optional).
p2: Option<u32>Property index at the second vertex (optional).
cap_mode: CapModeCap style for the beam ends.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Beam
impl<'de> Deserialize<'de> for Beam
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
impl StructuralPartialEq for Beam
Auto Trait Implementations§
impl Freeze for Beam
impl RefUnwindSafe for Beam
impl Send for Beam
impl Sync for Beam
impl Unpin for Beam
impl UnwindSafe for Beam
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more