mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-09-25 05:51:41 +02:00
add rail_extruded_sections
This commit is contained in:
@@ -67,7 +67,7 @@ You can use any point as the first point of the edge path. Just remember that yo
|
||||
use <path_scaling_sections.scad>;
|
||||
use <sweep.scad>;
|
||||
use <bezier_curve.scad>;
|
||||
use <rotate_p.scad>;
|
||||
use <ptf/ptf_rotate.scad>;
|
||||
|
||||
taiwan = shape_taiwan(100);
|
||||
fst_pt = [13, 0, 0];
|
||||
@@ -91,7 +91,7 @@ You can use any point as the first point of the edge path. Just remember that yo
|
||||
for(i = [0:leng - 1])
|
||||
[
|
||||
for(p = sections[i])
|
||||
rotate_p(p, twist_step * i)
|
||||
ptf_rotate(p, twist_step * i)
|
||||
]
|
||||
];
|
||||
|
||||
@@ -103,7 +103,7 @@ You can use any point as the first point of the edge path. Just remember that yo
|
||||
use <shape_taiwan.scad>;
|
||||
use <path_scaling_sections.scad>;
|
||||
use <sweep.scad>;
|
||||
use <rotate_p.scad>;
|
||||
use <ptf/ptf_rotate.scad>;
|
||||
|
||||
taiwan = shape_taiwan(100);
|
||||
|
||||
@@ -115,12 +115,12 @@ You can use any point as the first point of the edge path. Just remember that yo
|
||||
a = atan2(fst_pt[1], fst_pt[0]);
|
||||
edge_path = [
|
||||
fst_pt,
|
||||
fst_pt + rotate_p([0, 0, 10], a),
|
||||
fst_pt + rotate_p([10, 0, 20], a),
|
||||
fst_pt + rotate_p([8, 0, 30], a),
|
||||
fst_pt + rotate_p([10, 0, 40], a),
|
||||
fst_pt + rotate_p([0, 0, 50], a),
|
||||
fst_pt + rotate_p([0, 0, 60], a)
|
||||
fst_pt + ptf_rotate([0, 0, 10], a),
|
||||
fst_pt + ptf_rotate([10, 0, 20], a),
|
||||
fst_pt + ptf_rotate([8, 0, 30], a),
|
||||
fst_pt + ptf_rotate([10, 0, 40], a),
|
||||
fst_pt + ptf_rotate([0, 0, 50], a),
|
||||
fst_pt + ptf_rotate([0, 0, 60], a)
|
||||
];
|
||||
|
||||
#hull_polyline3d(edge_path);
|
||||
|
Reference in New Issue
Block a user