pub struct Pipe;
Implementations§
source§impl Pipe
impl Pipe
sourcepub fn straight(
od: f64,
wall_thickness: f64,
length: f64,
center: bool,
fn_: u64
) -> Scad
pub fn straight( od: f64, wall_thickness: f64, length: f64, center: bool, fn_: u64 ) -> Scad
Create a straight pipe.
Examples found in repository?
examples/k40_air_assist.rs (line 33)
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
fn main() {
scad_file!("output/k40_air_assist.scad",
union!(
translate!([0.0, 0.0, 50.8],
Pipe::straight(30.0, 2.0, 8.0, false, 50);
translate!([18.5, 0.0, 0.0],
Pipe::straight(11.0, 2.0, 8.0, false, 50);
);
);
translate!([18.5, 0.0, 50.8],
rotate!([180.0, 0.0, 0.0],
Pipe::curved(11.0, 2.0, 20.35, 0.0, 50);
);
);
difference!(
rotate!([0.0, 20.4, 0.0],
Pipe::tapered(5.0, 11.0, 2.0, 52.2, false, 50);
);
cube!(20.0, true);
);
);
);
}
sourcepub fn straight_solid(od: f64, length: f64, center: bool, fn_: u64) -> Scad
pub fn straight_solid(od: f64, length: f64, center: bool, fn_: u64) -> Scad
Create a solid straight pipe.
sourcepub fn curved(
od: f64,
wall_thickness: f64,
degrees: f64,
radius: f64,
fn_: u64
) -> Scad
pub fn curved( od: f64, wall_thickness: f64, degrees: f64, radius: f64, fn_: u64 ) -> Scad
Create a curved pipe.
#params
od: The outside diameter of the pipe.
wall_thickness: The wall thickness of the pipe.
degrees: The total angle of the curve.
radius: The radius of the curve at the center of the pipe.
fn_: The $fn value for OpenSCAD
return: A Scad struct literal.
Examples found in repository?
examples/k40_air_assist.rs (line 40)
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
fn main() {
scad_file!("output/k40_air_assist.scad",
union!(
translate!([0.0, 0.0, 50.8],
Pipe::straight(30.0, 2.0, 8.0, false, 50);
translate!([18.5, 0.0, 0.0],
Pipe::straight(11.0, 2.0, 8.0, false, 50);
);
);
translate!([18.5, 0.0, 50.8],
rotate!([180.0, 0.0, 0.0],
Pipe::curved(11.0, 2.0, 20.35, 0.0, 50);
);
);
difference!(
rotate!([0.0, 20.4, 0.0],
Pipe::tapered(5.0, 11.0, 2.0, 52.2, false, 50);
);
cube!(20.0, true);
);
);
);
}
sourcepub fn curved_solid(od: f64, degrees: f64, radius: f64, fn_: u64) -> Scad
pub fn curved_solid(od: f64, degrees: f64, radius: f64, fn_: u64) -> Scad
Create a curved solid pipe.
#params
od: The outside diameter of the pipe.
wall_thickness: The wall thickness of the pipe.
degrees: The total angle of the curve.
radius: The radius of the curve at the center of the pipe.
fn_: The $fn value for OpenSCAD
return: A Scad struct literal.
sourcepub fn tapered(
od1: f64,
od2: f64,
wall_thickness: f64,
length: f64,
center: bool,
fn_: u64
) -> Scad
pub fn tapered( od1: f64, od2: f64, wall_thickness: f64, length: f64, center: bool, fn_: u64 ) -> Scad
Create a tapered pipe.
Examples found in repository?
examples/k40_air_assist.rs (line 45)
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
fn main() {
scad_file!("output/k40_air_assist.scad",
union!(
translate!([0.0, 0.0, 50.8],
Pipe::straight(30.0, 2.0, 8.0, false, 50);
translate!([18.5, 0.0, 0.0],
Pipe::straight(11.0, 2.0, 8.0, false, 50);
);
);
translate!([18.5, 0.0, 50.8],
rotate!([180.0, 0.0, 0.0],
Pipe::curved(11.0, 2.0, 20.35, 0.0, 50);
);
);
difference!(
rotate!([0.0, 20.4, 0.0],
Pipe::tapered(5.0, 11.0, 2.0, 52.2, false, 50);
);
cube!(20.0, true);
);
);
);
}