pub struct ChainFit {
pub tolerance: f64,
pub corners: bool,
pub axis_snap_deg: Option<f64>,
pub min_bow: f64,
pub closed: bool,
}Expand description
How a chain of points is fitted with lines and arcs.
Fields§
§tolerance: f64Every point lies within this distance of its piece, mm.
corners: boolPieces turning against each other meet where their curves cross, bringing back a corner the points round off.
axis_snap_deg: Option<f64>Lines within this many degrees of the plane’s axes are turned onto them where they still hold their points.
min_bow: f64An arc bowing from its chord by no more than this is taken as lines, mm.
closed: boolTrait Implementations§
impl Copy for ChainFit
Source§impl<'de> Deserialize<'de> for ChainFit
impl<'de> Deserialize<'de> for ChainFit
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 ChainFit
Auto Trait Implementations§
impl Forget for ChainFit
impl Freeze for ChainFit
impl RefUnwindSafe for ChainFit
impl Send for ChainFit
impl Sync for ChainFit
impl Unpin for ChainFit
impl UnsafeUnpin for ChainFit
impl UnwindSafe for ChainFit
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