1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-28 17:00:00 +02:00

refactor/format

This commit is contained in:
Justin Lin
2022-04-04 18:58:32 +08:00
parent 556fd1ed28
commit c3425143c3
12 changed files with 73 additions and 99 deletions

View File

@@ -20,21 +20,19 @@ module nautilus_shell(chambered_section_max_angle, steps, thickness) {
];
half_thickness = thickness / 2;
render() {
polyline_join(spiral)
circle(half_thickness);
for(a = [a_step:a_step * 2:chambered_section_max_angle]) {
a2 = a + 360;
a3 = a + 420;
p1 = ptf_rotate([r(a), 0], a);
p2 = ptf_rotate((p1 + ptf_rotate([r(a2), 0], a2)) * .6, -5);
p3 = ptf_rotate([r(a3), 0], a3);
polyline_join(bezier_curve(0.1, [p1, p2, p3]))
circle(half_thickness);
}
polyline_join(spiral)
circle(half_thickness);
for(a = [a_step:a_step * 2:chambered_section_max_angle]) {
a2 = a + 360;
a3 = a + 420;
p1 = ptf_rotate([r(a), 0], a);
p2 = ptf_rotate((p1 + ptf_rotate([r(a2), 0], a2)) * .6, -5);
p3 = ptf_rotate([r(a3), 0], a3);
polyline_join(bezier_curve(0.1, [p1, p2, p3]))
circle(half_thickness);
}
}