pub struct MedialPath {
pub points: Vec<[f64; 2]>,
pub clearance: Vec<f64>,
pub boundary_ends: [bool; 2],
}Expand description
A stretch of a region’s medial axis, in the profile plane’s own 2D coordinates: points along one branch with the clearance at each, the radius of the largest disc centred there that stays inside the region.
Fields§
§points: Vec<[f64; 2]>§clearance: Vec<f64>One per point, in millimetres.
boundary_ends: [bool; 2]Whether the first and the last point end the axis on the boundary (a corner, or a rounded end’s centre) rather than meet other branches: towards such an end the clearance falls without the region getting thinner.
Trait Implementations§
Source§impl Clone for MedialPath
impl Clone for MedialPath
Source§impl Debug for MedialPath
impl Debug for MedialPath
Source§impl<'de> Deserialize<'de> for MedialPath
impl<'de> Deserialize<'de> for MedialPath
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 PartialEq for MedialPath
impl PartialEq for MedialPath
Source§impl Serialize for MedialPath
impl Serialize for MedialPath
impl StructuralPartialEq for MedialPath
Auto Trait Implementations§
impl Forget for MedialPath
impl Freeze for MedialPath
impl RefUnwindSafe for MedialPath
impl Send for MedialPath
impl Sync for MedialPath
impl Unpin for MedialPath
impl UnsafeUnpin for MedialPath
impl UnwindSafe for MedialPath
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