pub struct CosmeticThread {
pub designation: String,
pub face: String,
pub axis: Axis,
pub radius: Scalar,
pub taper: Scalar,
pub major_diameter: f64,
pub minor_diameter: f64,
pub pitch: f64,
pub length: f64,
pub internal: bool,
pub handedness: Handedness,
}Expand description
A thread recorded on a round face, straight or tapered, by its specification and where it lies — kept as geometry, so that it says the same whatever later steps do to the face it was put on.
Fields§
§designation: StringHow it is called: M6x1.
face: StringThe face it was put on, by its name then.
axis: AxisWhere it starts, on the axis of its face, and the way it runs from there (a unit vector).
radius: ScalarThe radius of the face it lies on where it starts: where it is drawn.
taper: ScalarHow much that radius, and the thread’s diameters, change per unit along the axis from where it starts: none for a straight thread, and for a pipe thread (NPT) a thirty-second, shrinking into a hole from its face, growing along a pipe from its end.
major_diameter: f64The thread’s nominal (major) diameter, its minor diameter where it starts, and its pitch, as its standard gives them.
minor_diameter: f64§pitch: f64§length: f64How far along the axis it runs from where it starts.
internal: boolIn a hole (a nut’s thread) rather than on a shaft (a bolt’s).
handedness: HandednessImplementations§
Source§impl CosmeticThread
impl CosmeticThread
Sourcepub fn helix(&self) -> GeopResult<NurbCurve3D>
pub fn helix(&self) -> GeopResult<NurbCurve3D>
The helix it is drawn as: on its face, from where it starts, one turn per pitch, as far as it runs, following the face’s taper.
Sourcepub fn polyline(&self) -> GeopResult<Vec<Vector3>>
pub fn polyline(&self) -> GeopResult<Vec<Vector3>>
The helix as a polyline, SEGMENTS_PER_SPAN segments to a quarter turn.
Trait Implementations§
Source§impl Clone for CosmeticThread
impl Clone for CosmeticThread
Source§fn clone(&self) -> CosmeticThread
fn clone(&self) -> CosmeticThread
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more