pub struct ToolGeometry {
pub diameter: f64,
pub cutting_length: f64,
pub shaft_diameter: Option<f64>,
pub shaft_length: f64,
pub overall_length: Option<f64>,
pub corner_radius: Option<f64>,
pub included_angle_deg: Option<f64>,
pub ball_diameter: Option<f64>,
pub tip_diameter: Option<f64>,
pub thread_pitch: Option<f64>,
pub flute_count: Option<u32>,
pub left_hand: bool,
}Expand description
Tool dimensions in model units. Angles in degrees.
Fields§
§diameter: f64Maximum cutting diameter.
cutting_length: f64Usable cutting (flute) length.
shaft_diameter: Option<f64>Shank diameter above the flutes (None: equals diameter).
shaft_length: f64Shank length above the cutting length used for collision checks.
overall_length: Option<f64>Overall length from tip to holder gauge face (None: cutting + shaft).
corner_radius: Option<f64>Corner radius (bull nose). None or 0 for sharp corners.
included_angle_deg: Option<f64>Included tip angle for cones, chamfers, V-bits, drills and spot drills.
ball_diameter: Option<f64>Ball diameter of a tapered ball (ball-cone) tool; None means the full diameter.
tip_diameter: Option<f64>Tip (small-end) diameter of a chamfer or tapered flat tool.
thread_pitch: Option<f64>Thread pitch (taps and thread mills).
flute_count: Option<u32>Number of flutes/teeth; feeds per tooth multiply by it.
left_hand: boolLeft-hand cutting direction/thread.
Implementations§
Source§impl ToolGeometry
impl ToolGeometry
pub fn flat(diameter: f64, cutting_length: f64) -> Self
pub fn shaft_diameter(&self) -> f64
pub fn overall_length(&self) -> f64
Trait Implementations§
Source§impl Clone for ToolGeometry
impl Clone for ToolGeometry
Source§impl Debug for ToolGeometry
impl Debug for ToolGeometry
Source§impl Default for ToolGeometry
impl Default for ToolGeometry
Source§impl<'de> Deserialize<'de> for ToolGeometry
impl<'de> Deserialize<'de> for ToolGeometry
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 ToolGeometry
impl PartialEq for ToolGeometry
Source§impl Serialize for ToolGeometry
impl Serialize for ToolGeometry
impl StructuralPartialEq for ToolGeometry
Auto Trait Implementations§
impl Forget for ToolGeometry
impl Freeze for ToolGeometry
impl Move for ToolGeometry
impl RefUnwindSafe for ToolGeometry
impl Send for ToolGeometry
impl Sync for ToolGeometry
impl Unpin for ToolGeometry
impl UnsafeUnpin for ToolGeometry
impl UnwindSafe for ToolGeometry
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