mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-11 09:14:29 +02:00
rename
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
use <circle_path.scad>;
|
use <shape_circle.scad>;
|
||||||
use <ring_extrude.scad>;
|
use <ring_extrude.scad>;
|
||||||
|
|
||||||
ball_radius = 10;
|
ball_radius = 10;
|
||||||
@@ -14,7 +14,7 @@ module bearing_captured_in_mobius_cut(ball_radius, mobius_radius, ring_radius, s
|
|||||||
ball_track_radius = ball_radius + spacing;
|
ball_track_radius = ball_radius + spacing;
|
||||||
trans_pt = [mobius_radius - ball_track_radius + ball_track_radius / 3, 0, 0];
|
trans_pt = [mobius_radius - ball_track_radius + ball_track_radius / 3, 0, 0];
|
||||||
|
|
||||||
circle_points = [for(p = circle_path(ball_track_radius)) p + trans_pt];
|
circle_points = [for(p = shape_circle(ball_track_radius)) p + trans_pt];
|
||||||
|
|
||||||
difference() {
|
difference() {
|
||||||
rotate_extrude()
|
rotate_extrude()
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
use <torus_knot.scad>;
|
use <torus_knot.scad>;
|
||||||
use <cross_sections.scad>;
|
use <cross_sections.scad>;
|
||||||
use <circle_path.scad>;
|
use <shape_circle.scad>;
|
||||||
use <shape_pentagram.scad>;
|
use <shape_pentagram.scad>;
|
||||||
use <experimental/tri_bisectors.scad>;
|
use <experimental/tri_bisectors.scad>;
|
||||||
use <experimental/hollow_out_sweep.scad>;
|
use <experimental/hollow_out_sweep.scad>;
|
||||||
@@ -16,7 +16,7 @@ if(section_style == "STAR") {
|
|||||||
hollow_out_torus_knot(shape_pentagram(.5), p, q, phi_step, thickness, line_style);
|
hollow_out_torus_knot(shape_pentagram(.5), p, q, phi_step, thickness, line_style);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
hollow_out_torus_knot(circle_path(radius = .5, $fn = 12), p, q, phi_step, thickness, line_style);
|
hollow_out_torus_knot(shape_circle(radius = .5, $fn = 12), p, q, phi_step, thickness, line_style);
|
||||||
}
|
}
|
||||||
|
|
||||||
module hollow_out_torus_knot(shape, p, q, phi_step, thickness, line_style) {
|
module hollow_out_torus_knot(shape, p, q, phi_step, thickness, line_style) {
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
use <arc_path.scad>;
|
use <arc_path.scad>;
|
||||||
use <circle_path.scad>;
|
use <shape_circle.scad>;
|
||||||
use <path_extrude.scad>;
|
use <path_extrude.scad>;
|
||||||
use <bezier_curve.scad>;
|
use <bezier_curve.scad>;
|
||||||
use <hull_polyline2d.scad>;
|
use <hull_polyline2d.scad>;
|
||||||
@@ -78,14 +78,14 @@ module klein_bottle(radius1, radius2, bottom_height, thickness, t_step, fn) {
|
|||||||
|
|
||||||
rotate(-90)
|
rotate(-90)
|
||||||
path_extrude(
|
path_extrude(
|
||||||
circle_path(radius1 + half_thickness),
|
shape_circle(radius1 + half_thickness),
|
||||||
tube_path
|
tube_path
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
rotate(-90)
|
rotate(-90)
|
||||||
path_extrude(
|
path_extrude(
|
||||||
circle_path(radius1 - half_thickness),
|
shape_circle(radius1 - half_thickness),
|
||||||
tube_path2
|
tube_path2
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
use <circle_path.scad>;
|
use <shape_circle.scad>;
|
||||||
use <rotate_p.scad>;
|
use <rotate_p.scad>;
|
||||||
use <polysections.scad>;
|
use <polysections.scad>;
|
||||||
|
|
||||||
@@ -23,7 +23,7 @@ module simple_seashell(r1, r2, a1, a2, steps) {
|
|||||||
a = a1 + i * ad
|
a = a1 + i * ad
|
||||||
)
|
)
|
||||||
[
|
[
|
||||||
for(p = concat(circle_path(r), circle_path(r * 0.9)))
|
for(p = concat(shape_circle(r), shape_circle(r * 0.9)))
|
||||||
rotate_p([p[0], p[1], 0] + [r, 0, 0], [0, a, 0])
|
rotate_p([p[0], p[1], 0] + [r, 0, 0], [0, a, 0])
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
use <rounded_cylinder.scad>;
|
use <rounded_cylinder.scad>;
|
||||||
use <helix_extrude.scad>;
|
use <helix_extrude.scad>;
|
||||||
use <circle_path.scad>;
|
use <shape_circle.scad>;
|
||||||
use <arc.scad>;
|
use <arc.scad>;
|
||||||
use <ellipse_extrude.scad>;
|
use <ellipse_extrude.scad>;
|
||||||
use <shape_ellipse.scad>;
|
use <shape_ellipse.scad>;
|
||||||
@@ -21,7 +21,7 @@ spacing = 0.4;
|
|||||||
module toy_spring(radius, levels, sides, line_thickness, line_distance) {
|
module toy_spring(radius, levels, sides, line_thickness, line_distance) {
|
||||||
$fn = 4;
|
$fn = 4;
|
||||||
|
|
||||||
spring = circle_path(radius = line_thickness / 2);
|
spring = shape_circle(radius = line_thickness / 2);
|
||||||
|
|
||||||
helix_extrude(spring,
|
helix_extrude(spring,
|
||||||
radius = radius,
|
radius = radius,
|
||||||
@@ -31,7 +31,7 @@ module toy_spring(radius, levels, sides, line_thickness, line_distance) {
|
|||||||
);
|
);
|
||||||
|
|
||||||
if(line_distance != 0) {
|
if(line_distance != 0) {
|
||||||
spring_gap = circle_path(radius = line_distance / 2);
|
spring_gap = shape_circle(radius = line_distance / 2);
|
||||||
|
|
||||||
#translate([0, 0, line_thickness / 2 + line_distance / 2])
|
#translate([0, 0, line_thickness / 2 + line_distance / 2])
|
||||||
helix_extrude(spring_gap,
|
helix_extrude(spring_gap,
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
use <arc_path.scad>;
|
use <arc_path.scad>;
|
||||||
use <circle_path.scad>;
|
use <shape_circle.scad>;
|
||||||
use <path_extrude.scad>;
|
use <path_extrude.scad>;
|
||||||
use <bezier_curve.scad>;
|
use <bezier_curve.scad>;
|
||||||
use <bspline_curve.scad>;
|
use <bspline_curve.scad>;
|
||||||
@@ -78,14 +78,14 @@ module dis_connected_klein_bottle(radius1, radius2, bottom_height, thickness, t_
|
|||||||
|
|
||||||
rotate(-90)
|
rotate(-90)
|
||||||
path_extrude(
|
path_extrude(
|
||||||
circle_path(radius1 + half_thickness),
|
shape_circle(radius1 + half_thickness),
|
||||||
tube_path
|
tube_path
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
rotate(-90)
|
rotate(-90)
|
||||||
path_extrude(
|
path_extrude(
|
||||||
circle_path(radius1 - half_thickness),
|
shape_circle(radius1 - half_thickness),
|
||||||
tube_path2
|
tube_path2
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user