Examples
bedlevelpattern_examples
Circle in square bed level pattern
A circle inside a square outline, across 90% of a 220 x 220 mm bed.
Source: examples/bedlevelpattern_examples/blp_circle_in_square_example.scad
// Circle in square bed level pattern
// A circle inside a square outline, across 90% of a 220 x 220 mm bed.
include <../../src/bedlevelpattern.scad>;
// Parameters
bed_level_pattern_type = "circle in square";
print_area_width = 220.001;
print_area_depth = 220.001;
line_width = 0.401;
line_height = 0.301;
fill_percentage = 90; // Range: [50:100]
quality_value = 128;
$fn = quality_value;
// Generate the pattern
generate_bed_level_pattern(
bed_level_pattern_type, print_area_width, print_area_depth, line_width, line_height,
fill_percentage
);
examples/bedlevelpattern_examples/blp_circle_in_square_example.scad on GitHub
Concentric circles bed level pattern
Seven single-line rings across 90% of a 220 x 220 mm bed.
Source: examples/bedlevelpattern_examples/blp_concentric_circles_example.scad
// Concentric circles bed level pattern
// Seven single-line rings across 90% of a 220 x 220 mm bed.
include <../../src/bedlevelpattern.scad>;
// Parameters
bed_level_pattern_type = "concentric circles";
print_area_width = 220.001;
print_area_depth = 220.001;
line_width = 0.401;
line_height = 0.301;
fill_percentage = 90; // Range: [50:100]
concentric_ring_count = 7;
quality_value = 128;
$fn = quality_value;
// Generate the pattern
generate_bed_level_pattern(
bed_level_pattern_type, print_area_width, print_area_depth, line_width, line_height,
fill_percentage, concentric_ring_count=concentric_ring_count
);
examples/bedlevelpattern_examples/blp_concentric_circles_example.scad on GitHub
Concentric squares bed level pattern
Seven nested square outlines across 90% of a 220 x 220 mm bed.
Source: examples/bedlevelpattern_examples/blp_concentric_squares_example.scad
// Concentric squares bed level pattern
// Seven nested square outlines across 90% of a 220 x 220 mm bed.
include <../../src/bedlevelpattern.scad>;
// Parameters
bed_level_pattern_type = "concentric squares";
print_area_width = 220.001;
print_area_depth = 220.001;
line_width = 0.401;
line_height = 0.301;
fill_percentage = 90; // Range: [50:100]
concentric_ring_count = 7;
quality_value = 128;
$fn = quality_value;
// Generate the pattern
generate_bed_level_pattern(
bed_level_pattern_type, print_area_width, print_area_depth, line_width, line_height,
fill_percentage, concentric_ring_count=concentric_ring_count
);
examples/bedlevelpattern_examples/blp_concentric_squares_example.scad on GitHub
Five circles bed level pattern
Filled circles at the centre and in each corner, joined by a curved outline.
Source: examples/bedlevelpattern_examples/blp_five_circles_example.scad
// Five circles bed level pattern
// Filled circles at the centre and in each corner, joined by a curved outline.
include <../../src/bedlevelpattern.scad>;
// Parameters
bed_level_pattern_type = "five circles";
print_area_width = 220.001;
print_area_depth = 220.001;
line_width = 0.401;
line_height = 0.301;
fill_percentage = 90; // Range: [50:100]
circle_diameter = 20;
outline_distance = 5;
quality_value = 128;
$fn = quality_value;
// Generate the pattern
generate_bed_level_pattern(
bed_level_pattern_type, print_area_width, print_area_depth, line_width, line_height,
fill_percentage, circle_diameter=circle_diameter, outline_distance=outline_distance
);
examples/bedlevelpattern_examples/blp_five_circles_example.scad on GitHub
Grid bed level pattern
A 4 x 4 grid of single lines across 90% of a 220 x 220 mm bed.
Source: examples/bedlevelpattern_examples/blp_grid_example.scad
// Grid bed level pattern
// A 4 x 4 grid of single lines across 90% of a 220 x 220 mm bed.
include <../../src/bedlevelpattern.scad>;
// Parameters
bed_level_pattern_type = "grid";
print_area_width = 220.001;
print_area_depth = 220.001;
line_width = 0.401;
line_height = 0.301;
fill_percentage = 90; // Range: [50:100]
grid_cell_count = 4;
quality_value = 128;
$fn = quality_value;
// Generate the pattern
generate_bed_level_pattern(
bed_level_pattern_type, print_area_width, print_area_depth, line_width, line_height,
fill_percentage, grid_cell_count=grid_cell_count
);
examples/bedlevelpattern_examples/blp_grid_example.scad on GitHub
Padded grid bed level pattern
A 4 x 4 grid with a square pad at every intersection.
Source: examples/bedlevelpattern_examples/blp_padded_grid_example.scad
// Padded grid bed level pattern
// A 4 x 4 grid with a square pad at every intersection.
include <../../src/bedlevelpattern.scad>;
// Parameters
bed_level_pattern_type = "padded grid";
print_area_width = 220.001;
print_area_depth = 220.001;
line_width = 0.401;
line_height = 0.301;
fill_percentage = 90; // Range: [50:100]
grid_cell_count = 4;
grid_pad_size = 10.001;
quality_value = 128;
$fn = quality_value;
// Generate the pattern
generate_bed_level_pattern(
bed_level_pattern_type, print_area_width, print_area_depth, line_width, line_height,
fill_percentage, grid_cell_count=grid_cell_count, grid_pad_size=grid_pad_size
);
examples/bedlevelpattern_examples/blp_padded_grid_example.scad on GitHub
Any bed level pattern
All eight patterns in one file: pick one, and set its parameters, in the Customizer.
Source: examples/bedlevelpattern_examples/blp_showcase_example.scad
// Any bed level pattern
// All eight patterns in one file: pick one, and set its parameters, in the Customizer.
include <../../src/bedlevelpattern.scad>;
/* [Pattern] */
bed_level_pattern_type = "concentric squares"; // [concentric squares, spiral squares, concentric circles, x in square, circle in square, grid, padded grid, five circles]
/* [Print area] */
print_area_width = 220.001;
print_area_depth = 220.001;
// Share of the print area the pattern covers (%)
fill_percentage = 90; // [50:100]
/* [Lines] */
line_width = 0.401;
line_height = 0.301;
/* [Concentric and spiral patterns] */
concentric_ring_count = 7;
/* [Grid patterns] */
grid_cell_count = 4;
// Side of each pad on the padded grid
grid_pad_size = 10.001;
/* [Five circles] */
circle_diameter = 20;
outline_distance = 5;
/* [Quality] */
quality_value = 128;
$fn = quality_value;
generate_bed_level_pattern(
bed_level_pattern_type=bed_level_pattern_type, print_area_width=print_area_width,
print_area_depth=print_area_depth, line_width=line_width, line_height=line_height,
fill_percentage=fill_percentage, concentric_ring_count=concentric_ring_count,
grid_cell_count=grid_cell_count, grid_pad_size=grid_pad_size, circle_diameter=circle_diameter,
outline_distance=outline_distance
);
examples/bedlevelpattern_examples/blp_showcase_example.scad on GitHub
Spiral squares bed level pattern
One continuous square spiral of seven turns across 90% of a 220 x 220 mm bed.
Source: examples/bedlevelpattern_examples/blp_spiral_squares_example.scad
// Spiral squares bed level pattern
// One continuous square spiral of seven turns across 90% of a 220 x 220 mm bed.
include <../../src/bedlevelpattern.scad>;
// Parameters
bed_level_pattern_type = "spiral squares";
print_area_width = 220.001;
print_area_depth = 220.001;
line_width = 0.401;
line_height = 0.301;
fill_percentage = 90; // Range: [50:100]
concentric_ring_count = 7;
quality_value = 128;
$fn = quality_value;
// Generate the pattern
generate_bed_level_pattern(
bed_level_pattern_type, print_area_width, print_area_depth, line_width, line_height,
fill_percentage, concentric_ring_count=concentric_ring_count
);
examples/bedlevelpattern_examples/blp_spiral_squares_example.scad on GitHub
X in square bed level pattern
Corner-to-corner diagonals inside a square outline.
Source: examples/bedlevelpattern_examples/blp_x_in_square_example.scad
// X in square bed level pattern
// Corner-to-corner diagonals inside a square outline.
include <../../src/bedlevelpattern.scad>;
// Parameters
bed_level_pattern_type = "x in square";
print_area_width = 220.001;
print_area_depth = 220.001;
line_width = 0.401;
line_height = 0.301;
fill_percentage = 90; // Range: [50:100]
quality_value = 128;
$fn = quality_value;
// Generate the pattern
generate_bed_level_pattern(
bed_level_pattern_type, print_area_width, print_area_depth, line_width, line_height,
fill_percentage
);
examples/bedlevelpattern_examples/blp_x_in_square_example.scad on GitHub
flowtower_examples
Flow tower
Hollow sections labelled 115 down to 85 in steps of 5, to choose a flow rate.
Source: examples/flowtower_examples/flowtower_example.scad
// Flow tower
// Hollow sections labelled 115 down to 85 in steps of 5, to choose a flow rate.
include <../../src/flowtower.scad>;
/* [User Parameters] */
// Set your desired parameters here
tower_label = "Flow Tower";
tower_secondary_label = "Calibration";
section_label_prefix = "";
section_label_suffix = "%";
starting_value = 115;
ending_value = 85;
value_change = -5;
base_height = 0.841;
section_size = 8.401;
section_hole_diameter = 4.201;
font = "Arial:style=Bold";
label_sections = true;
section_label_height_multiplier = 0.401;
tower_label_height_multiplier = 0.601;
tower_secondary_label_height_multiplier = 0.401;
wall_thickness = 0.601;
iota = 0.001;
orient_for_screenshot = false;
/* [Quality Settings] */
// Set the rendering quality
preview_quality_value = 24;
render_quality_value = 48; // Increase for higher detail
$fn = $preview ? preview_quality_value : render_quality_value;
/* [Generate the Flow Tower] */
generate_flow_tower(
tower_label=tower_label,
tower_secondary_label=tower_secondary_label,
section_label_prefix=section_label_prefix,
section_label_suffix=section_label_suffix,
starting_value=starting_value,
ending_value=ending_value,
value_change=value_change,
base_height=base_height,
section_size=section_size,
section_hole_diameter=section_hole_diameter,
font=font,
label_sections=label_sections,
section_label_height_multiplier=section_label_height_multiplier,
tower_label_height_multiplier=tower_label_height_multiplier,
tower_secondary_label_height_multiplier=tower_secondary_label_height_multiplier,
wall_thickness=wall_thickness,
iota=iota,
orient_for_screenshot=orient_for_screenshot
);
examples/flowtower_examples/flowtower_example.scad on GitHub
retracttower_examples
Retraction tower
A square and a round column in sections from 1 to 6 mm of retraction, in 1 mm steps.
Source: examples/retracttower_examples/retracttower_example.scad
// Retraction tower
// A square and a round column in sections from 1 to 6 mm of retraction, in 1 mm steps.
include <../../src/retracttower.scad>;
/* [User Parameters] */
// Set your desired parameters here
tower_label = "";
column_label = "";
section_label_prefix = "";
section_label_suffix = "mm";
starting_value = 1.0;
ending_value = 6.0;
value_change = 1.0;
base_height = 0.801;
section_height = 8.001;
font = "Arial:style=Bold";
label_sections = true;
section_label_height_multiplier = 0.401;
tower_label_height_multiplier = 0.601;
column_label_height_multiplier = 0.301;
column_label_letter_spacing_multiplier = 1.001;
wall_thickness = 0.601;
tower_width_multiplier = 5.001;
iota = 0.001;
orient_for_screenshot = false;
/* [Quality Settings] */
// Set the rendering quality
preview_quality_value = 24;
render_quality_value = 48; // Increase for higher detail
$fn = $preview ? preview_quality_value : render_quality_value;
/* [Generate the Retract Tower] */
generate_retract_tower(
tower_label=tower_label,
column_label=column_label,
section_label_prefix=section_label_prefix,
section_label_suffix=section_label_suffix,
starting_value=starting_value,
ending_value=ending_value,
value_change=value_change,
base_height=base_height,
section_height=section_height,
font=font,
label_sections=label_sections,
section_label_height_multiplier=section_label_height_multiplier,
tower_label_height_multiplier=tower_label_height_multiplier,
column_label_height_multiplier=column_label_height_multiplier,
column_label_letter_spacing_multiplier=column_label_letter_spacing_multiplier,
wall_thickness=wall_thickness,
tower_width_multiplier=tower_width_multiplier,
iota=iota,
orient_for_screenshot=orient_for_screenshot
);
examples/retracttower_examples/retracttower_example.scad on GitHub
speedtower_examples
Speed tower
An L-shaped tower in sections from 20 to 100 mm/s, in 20 mm/s steps.
Source: examples/speedtower_examples/speedtower_example.scad
// Speed tower
// An L-shaped tower in sections from 20 to 100 mm/s, in 20 mm/s steps.
include <../../src/speedtower.scad>;
/* [User Parameters] */
// Set your desired parameters here
tower_label = "Speed Tower";
tower_description = "Calibration";
starting_speed_value = 20;
ending_speed_value = 100;
speed_value_change = 20;
wing_length = 50.001;
wing_thickness = 3.001;
base_height = 0.841;
section_height = 8.401;
base_font_size = 2.001;
hide_labels = false;
font = "Arial:style=Bold";
section_label_height_multiplier = 0.401;
wall_thickness = 0.4001;
section_font_height_multiplier = 0.333;
inscription_depth = 0.201;
iota = 0.001;
orient_for_screenshot = false;
/* [Quality Settings] */
// Set the rendering quality
preview_quality_value = 24;
render_quality_value = 48; // Increase for higher detail
$fn = $preview ? preview_quality_value : render_quality_value;
/* [Generate the Speed Tower] */
generate_speed_tower(
tower_label=tower_label,
tower_description=tower_description,
starting_speed_value=starting_speed_value,
ending_speed_value=ending_speed_value,
speed_value_change=speed_value_change,
wing_length=wing_length,
wing_thickness=wing_thickness,
base_height=base_height,
section_height=section_height,
base_font_size=base_font_size,
hide_labels=hide_labels,
font=font,
section_label_height_multiplier=section_label_height_multiplier,
wall_thickness=wall_thickness,
section_font_height_multiplier=section_font_height_multiplier,
inscription_depth=inscription_depth,
iota=iota,
orient_for_screenshot=orient_for_screenshot
);
examples/speedtower_examples/speedtower_example.scad on GitHub
temptower_examples
Detailed temperature tower
Sections from 220 down to 180 degrees C in 5 degree steps, each with overhangs, cones and a bridge.
Source: examples/temptower_examples/temptower_detailed_example.scad
// Detailed temperature tower
// Sections from 220 down to 180 degrees C in 5 degree steps, each with overhangs, cones and a bridge.
include <../../src/temptower_detailed.scad>;
/* [User Parameters] */
// Set your desired parameters here
tower_label = "Temp Tower";
section_label_prefix = "";
section_label_suffix = "C";
starting_value = 220;
ending_value = 180;
value_change = -5;
base_height = 0.801;
section_height = 8.001;
wall_thickness = 0.601;
font = "Arial:style=Bold";
label_sections = true;
base_extension = 2.404;
left_slope_angle = 35;
right_slope_angle = 45;
section_label_height_multiplier = 0.401;
iota = 0.001;
orient_for_screenshot = false;
/* [Quality Settings] */
// Set the rendering quality
preview_quality_value = 24;
render_quality_value = 48; // Increase for higher detail
$fn = $preview ? preview_quality_value : render_quality_value;
/* [Generate the Detailed Temp Tower] */
generate_temp_tower_detailed(
tower_label=tower_label,
section_label_prefix=section_label_prefix,
section_label_suffix=section_label_suffix,
starting_value=starting_value,
ending_value=ending_value,
value_change=value_change,
base_height=base_height,
section_height=section_height,
wall_thickness=wall_thickness,
font=font,
label_sections=label_sections,
base_extension=base_extension,
left_slope_angle=left_slope_angle,
right_slope_angle=right_slope_angle,
section_label_height_multiplier=section_label_height_multiplier,
iota=iota,
orient_for_screenshot=orient_for_screenshot
);
examples/temptower_examples/temptower_detailed_example.scad on GitHub
Temperature tower
Bridged sections from 220 down to 180 degrees C in 5 degree steps, each labelled.
Source: examples/temptower_examples/temptower_example.scad
// Temperature tower
// Bridged sections from 220 down to 180 degrees C in 5 degree steps, each labelled.
include <../../src/temptower.scad>;
/* [User Parameters] */
// Set your desired parameters here
tower_label = "Temp Tower";
column_label = "";
section_label_prefix = "";
section_label_suffix = "C";
starting_value = 220;
ending_value = 180;
value_change = -5;
base_height = 0.801;
section_height = 8.001;
font = "Arial:style=Bold";
label_sections = true;
section_label_height_multiplier = 0.401;
tower_label_height_multiplier = 0.601;
column_label_height_multiplier = 0.301;
wall_thickness = 0.601;
tower_width_multiplier = 5.001;
iota = 0.001;
orient_for_screenshot = false;
/* [Quality Settings] */
// Set the rendering quality
preview_quality_value = 24;
render_quality_value = 48; // Increase for higher detail
$fn = $preview ? preview_quality_value : render_quality_value;
/* [Generate the Temp Tower] */
generate_temp_tower(
tower_label=tower_label,
column_label=column_label,
section_label_prefix=section_label_prefix,
section_label_suffix=section_label_suffix,
starting_value=starting_value,
ending_value=ending_value,
value_change=value_change,
base_height=base_height,
section_height=section_height,
font=font,
label_sections=label_sections,
section_label_height_multiplier=section_label_height_multiplier,
tower_label_height_multiplier=tower_label_height_multiplier,
column_label_height_multiplier=column_label_height_multiplier,
wall_thickness=wall_thickness,
tower_width_multiplier=tower_width_multiplier,
iota=iota,
orient_for_screenshot=orient_for_screenshot
);
examples/temptower_examples/temptower_example.scad on GitHub
torture_test_examples
Torture test
An 80 mm cube of bars stood on one corner on a round base.
Source: examples/torture_test_examples/torture_test_example.scad
// Torture test
// An 80 mm cube of bars stood on one corner on a round base.
include <../../src/torture_test.scad>;
/* [User Parameters] */
// The thickness of bars in the model
bar_thickness = 5;
// The overall size of the cube
cube_length = 80;
// The thickness of the base
base_thickness = 4;
// The base diameter as a proportion of cube_length
base_scale = 1.1;
/* [Quality Settings] */
// Set the rendering quality
preview_quality_value = 32;
render_quality_value = 64; // Increase for higher detail
$fn = $preview ? preview_quality_value : render_quality_value;
/* [Generate the Torture Test] */
generate_torture_test(
bar_thickness=bar_thickness,
cube_length=cube_length,
base_thickness=base_thickness,
base_scale=base_scale
);
examples/torture_test_examples/torture_test_example.scad on GitHub
xyzcalicube_examples
XYZ calibration cube
A 20 mm cube with X, Y and Z cut into its faces, to measure each axis.
Source: examples/xyzcalicube_examples/xyzcalicube_example.scad
// XYZ calibration cube
// A 20 mm cube with X, Y and Z cut into its faces, to measure each axis.
include <../../src/xyzcalicube.scad>;
/* [User Parameters] */
// The size of the calibration cube
cube_size = 20;
/* [Quality Settings] */
// Set the rendering quality
preview_quality_value = 24;
render_quality_value = 48; // Increase for higher detail
$fn = $preview ? preview_quality_value : render_quality_value;
/* [Generate the XYZ Calibration Cube] */
generate_xyz_cali_cube(
cube_size=cube_size
);
examples/xyzcalicube_examples/xyzcalicube_example.scad on GitHub