mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-23 06:43:10 +02:00
use m_transpose
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
use <ellipse_extrude.scad>;
|
use <ellipse_extrude.scad>;
|
||||||
use <curve.scad>;
|
use <curve.scad>;
|
||||||
use <sweep.scad>;
|
use <sweep.scad>;
|
||||||
use <rails2sections.scad>;
|
use <matrix/m_transpose.scad>;
|
||||||
use <shape_trapezium.scad>;
|
use <shape_trapezium.scad>;
|
||||||
use <ptf/ptf_rotate.scad>;
|
use <ptf/ptf_rotate.scad>;
|
||||||
|
|
||||||
@@ -52,7 +52,7 @@ module dragon_head() {
|
|||||||
|
|
||||||
translate([0, 0, -2])
|
translate([0, 0, -2])
|
||||||
rotate([90, 0, -90])
|
rotate([90, 0, -90])
|
||||||
sweep(rails2sections([path1, path2, path3, path4, path5]));
|
sweep(m_transpose([path1, path2, path3, path4, path5]));
|
||||||
|
|
||||||
translate([0, 0, -3.25])
|
translate([0, 0, -3.25])
|
||||||
rotate([90, 0, -90])
|
rotate([90, 0, -90])
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
use <polyline_join.scad>;
|
use <polyline_join.scad>;
|
||||||
use <bezier_curve.scad>;
|
use <bezier_curve.scad>;
|
||||||
use <ptf/ptf_rotate.scad>;
|
use <ptf/ptf_rotate.scad>;
|
||||||
use <rails2sections.scad>;
|
use <matrix/m_transpose.scad>;
|
||||||
use <experimental/hollow_out_sweep.scad>;
|
use <experimental/hollow_out_sweep.scad>;
|
||||||
use <experimental/tri_bisectors.scad>;
|
use <experimental/tri_bisectors.scad>;
|
||||||
|
|
||||||
@@ -27,7 +27,7 @@ module hollow_out_vase(ctrl_pts, t_step, line_diameter, fn, line_style) {
|
|||||||
fpt = ctrl_pts[len(ctrl_pts) - 1];
|
fpt = ctrl_pts[len(ctrl_pts) - 1];
|
||||||
|
|
||||||
a_step = 360 / fn;
|
a_step = 360 / fn;
|
||||||
sects = rails2sections([
|
sects = m_transpose([
|
||||||
for(a = [0:a_step:360 - a_step])
|
for(a = [0:a_step:360 - a_step])
|
||||||
[for(p = bezier) ptf_rotate(p, [0, 0, a])]
|
[for(p = bezier) ptf_rotate(p, [0, 0, a])]
|
||||||
]);
|
]);
|
||||||
|
@@ -4,7 +4,7 @@ use <polyhedra/icosahedron.scad>;
|
|||||||
use <shear.scad>;
|
use <shear.scad>;
|
||||||
use <polyline_join.scad>;
|
use <polyline_join.scad>;
|
||||||
use <bezier_curve.scad>;
|
use <bezier_curve.scad>;
|
||||||
use <rails2sections.scad>;
|
use <matrix/m_transpose.scad>;
|
||||||
use <sweep.scad>;
|
use <sweep.scad>;
|
||||||
use <experimental/worley_sphere.scad>;
|
use <experimental/worley_sphere.scad>;
|
||||||
use <curve.scad>;
|
use <curve.scad>;
|
||||||
@@ -164,7 +164,7 @@ module owl(detail, head_angles) {
|
|||||||
points4, points3, points2, points
|
points4, points3, points2, points
|
||||||
];
|
];
|
||||||
|
|
||||||
sections = rails2sections(rails);
|
sections = m_transpose(rails);
|
||||||
|
|
||||||
sweep(sections);
|
sweep(sections);
|
||||||
}
|
}
|
||||||
|
@@ -18,3 +18,6 @@ new:
|
|||||||
- util/count
|
- util/count
|
||||||
- lemniscate_curve?
|
- lemniscate_curve?
|
||||||
- perlin_sphere?
|
- perlin_sphere?
|
||||||
|
|
||||||
|
deprecated:
|
||||||
|
rails2sections: use m_transpose
|
Reference in New Issue
Block a user